Index: test/mjsunit/harmony/classes-experimental.js |
diff --git a/test/mjsunit/harmony/classes-experimental.js b/test/mjsunit/harmony/classes-experimental.js |
index cccd8ca48b0b98a47aef64d2f0c9987ad649f97f..4e6cdc9e9801e7110f70da8f83f4d8f0d7acbcc2 100644 |
--- a/test/mjsunit/harmony/classes-experimental.js |
+++ b/test/mjsunit/harmony/classes-experimental.js |
@@ -164,6 +164,23 @@ |
}()); |
+(function TestSuperInBaseConstructors() { |
+ class Base { |
+ constructor() { |
+ let exn = null; |
+ try { |
+ super(); |
+ } catch (e) { |
+ exn = e; |
+ } |
+ assertTrue(exn instanceof ReferenceError); |
+ } |
+ } |
+ |
+ new Base(); |
+}()); |
+ |
+ |
(function TestPrototypeWiring() { |
class Base { |
constructor(x) { |