dry up classes

This commit is contained in:
Sebastian McKenzie
2014-09-29 12:23:50 +10:00
parent 53a8c34d33
commit 2e035663e1
28 changed files with 115 additions and 73 deletions

View File

@@ -0,0 +1,5 @@
class Test {
constructor() {
super();
}
}

View File

@@ -0,0 +1,3 @@
{
"throws": "cannot access super as this class has none"
}

View File

@@ -0,0 +1,4 @@
class Test {
get constructor() {
}
}

View File

@@ -0,0 +1,3 @@
{
"throws": "unknown kind for constructor method"
}

View File

@@ -0,0 +1,5 @@
class Test extends Foo {
constructor() {
super.test.whatever;
}
}

View File

@@ -0,0 +1,3 @@
{
"throws": "cannot access super properties"
}

View File

@@ -0,0 +1,5 @@
class Test extends Foo {
constructor() {
super.test.whatever();
}
}

View File

@@ -0,0 +1,3 @@
{
"throws": "cannot access super properties"
}