Index: test/mjsunit/harmony/regress/regress-4395.js |
diff --git a/test/mjsunit/harmony/regress/regress-4395.js b/test/mjsunit/harmony/regress/regress-4395.js |
index 09f5bfb733e0679989cda78e40d57868130c4431..fd1eb38df2a7e7871f56ffdf7d4d48067ad04a72 100644 |
--- a/test/mjsunit/harmony/regress/regress-4395.js |
+++ b/test/mjsunit/harmony/regress/regress-4395.js |
@@ -54,6 +54,7 @@ |
((x, [y = x]) => assertEquals(42, y))(42, []); |
})(); |
+ |
(function testMultiScopeCapture() { |
"use strict"; |
var x = 1; |
@@ -67,3 +68,31 @@ |
})(3, 4); |
} |
})(); |
+ |
+ |
+(function testSuper() { |
+ "use strict"; |
+ class A { |
+ x() { return 42; } |
+ } |
+ |
+ class B extends A { |
+ y() { |
+ ((q = super.x()) => assertEquals(42, q))(); |
+ } |
+ } |
+ |
+ new B().y(); |
+ |
+ class C { |
+ constructor() { return { prop: 42 } } |
+ } |
+ |
+ class D extends C{ |
+ constructor() { |
+ ((q = super()) => assertEquals(42, q.prop))(); |
+ } |
+ } |
+ |
+ new D(); |
+})(); |