chakra-core / chakra-core/ChakraCore

Property getters identified by Symbol can't invoke super

Open
#4,835 6 comments 0 reactions 0 assignees View on GitHub
Bug
Dominant language
JavaScript
Stars
9.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

We make heavy use of properties identified by `Symbol`, but on Edge it appears such properties are unable to invoke a property getter on `super`.

```
const prop = Symbol('prop');

class A {
// A property identified by a Symbol.
get [prop]() {
return this;
}
}

class B extends A {
get [prop]() {
// This should be `this`, but is undefined.
return super[prop];
}
}
```

See https://codepen.io/JanMiksovsky/pen/OvRXXN?editors=0011. That works in Chrome, Safari, and Firefox, but not Edge.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.