-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
PR: Spec Compliance 👓A type of pull request used for our changelog categoriesA type of pull request used for our changelog categoriesSpec: ClassesoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Description
class Test {
constructor() {
return super.constructor;
}
static test() {
return super.constructor;
}
}
console.assert(new Test() === Object, 'instance');
console.assert(Test.test() === Function, 'static');By default, the super of an class instance is the %ObjectPrototype%. The super inside a static method though, is %FunctionPrototype% .
In loose mode, we transform this directly into Function.prototype (really wrong) and Function (spec-y wrong).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
PR: Spec Compliance 👓A type of pull request used for our changelog categoriesA type of pull request used for our changelog categoriesSpec: ClassesoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue