mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
fd3233cf95
Fix #13323. Make semantic raise errors for the following illegal `super` uses: ```js o = { foo: function() { super.foo; }, bar() { return function() { super.bar; }; }, [ function() { super.qux; } ]() {}, get [ function() { super.bing; } ]() {}, set [ function() { super.bong; } ](v) {}, }; ```
18 lines
241 B
JavaScript
18 lines
241 B
JavaScript
o = {
|
|
foo: function() {
|
|
super.foo;
|
|
},
|
|
|
|
bar() {
|
|
return function() {
|
|
super.bar;
|
|
};
|
|
},
|
|
|
|
[ function() { super.qux; } ]() {},
|
|
|
|
get [ function() { super.bing; } ]() {},
|
|
|
|
set [ function() { super.bong; } ](v) {},
|
|
};
|