make bare super call in non-constructors illegal
This commit is contained in:
5
test/fixtures/transformation/es6-classes/super-illegal-non-constructor-call/actual.js
vendored
Normal file
5
test/fixtures/transformation/es6-classes/super-illegal-non-constructor-call/actual.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
class Test {
|
||||
foo() {
|
||||
super();
|
||||
}
|
||||
}
|
||||
3
test/fixtures/transformation/es6-classes/super-illegal-non-constructor-call/options.json
vendored
Normal file
3
test/fixtures/transformation/es6-classes/super-illegal-non-constructor-call/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"throws": "Direct super call is illegal in non-constructor"
|
||||
}
|
||||
Reference in New Issue
Block a user