diff options
Diffstat (limited to 'js/src/tests/ecma_6/Class/staticConstructor.js')
-rw-r--r-- | js/src/tests/ecma_6/Class/staticConstructor.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/js/src/tests/ecma_6/Class/staticConstructor.js b/js/src/tests/ecma_6/Class/staticConstructor.js new file mode 100644 index 000000000..bd79c2200 --- /dev/null +++ b/js/src/tests/ecma_6/Class/staticConstructor.js @@ -0,0 +1,22 @@ +class testBasic { + constructor() { } + static constructor() { } +} + +class testWithExtends extends null { + constructor() { }; + static constructor() { }; +} + +class testOrder { + static constructor() { }; + constructor() { }; +} + +class testOrderWithExtends extends null { + static constructor() { }; + constructor() { }; +} + +if (typeof reportCompare === "function") + reportCompare(0,0,"OK"); |