Index: test/mjsunit/harmony/classes-lazy-parsing.js |
diff --git a/test/mjsunit/harmony/classes-lazy-parsing.js b/test/mjsunit/harmony/classes-lazy-parsing.js |
index 2c0301957a494e377e8143801fa2588eab047e72..ceac9aa0761aebe42a0185b400ac6bb7f5b53ef1 100644 |
--- a/test/mjsunit/harmony/classes-lazy-parsing.js |
+++ b/test/mjsunit/harmony/classes-lazy-parsing.js |
@@ -16,6 +16,19 @@ class Derived extends Base { |
m() { |
return super.m(); |
} |
+ evalM() { |
+ return eval('super.m()'); |
+ } |
} |
assertEquals(42, new Derived().m()); |
+assertEquals(42, new Derived().evalM()); |
+ |
+ |
+class LazyDerived extends Base { |
+ constructor() { |
+ eval('super()'); |
+ } |
+} |
+assertInstanceof(new LazyDerived(), LazyDerived); |
+assertInstanceof(new LazyDerived(), Base); |