clean up verifyConstructor classes visitor and disallow super.* before super() in derived class constructors - fixes #1921

This commit is contained in:
Sebastian McKenzie
2015-07-04 21:38:22 +02:00
parent bd1bd38556
commit 0e4bb5ee3f
3 changed files with 23 additions and 22 deletions

View File

@@ -0,0 +1,6 @@
class Foo extends Bar {
constructor() {
super.foo();
super();
}
}

View File

@@ -0,0 +1,3 @@
{
"throws": "'super.*' is not allowed before super()"
}