Index: test/mjsunit/es6/regress/regress-4522.js |
diff --git a/test/mjsunit/es6/regress/regress-455141.js b/test/mjsunit/es6/regress/regress-4522.js |
similarity index 56% |
copy from test/mjsunit/es6/regress/regress-455141.js |
copy to test/mjsunit/es6/regress/regress-4522.js |
index 676adebe72b5532496112099d7cd41ccca395070..b71797c943676f48ca7bc40a0b68223c6de9a9d2 100644 |
--- a/test/mjsunit/es6/regress/regress-455141.js |
+++ b/test/mjsunit/es6/regress/regress-4522.js |
@@ -1,15 +1,19 @@ |
// Copyright 2015 the V8 project authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-// |
-// Flags: --no-lazy |
+ |
"use strict"; |
-class Base { |
-} |
-class Subclass extends Base { |
- constructor() { |
- this.prp1 = 3; |
+ |
+class C { |
+ foo() { |
+ return 42; |
} |
} |
-function __f_1(){ |
+ |
+class D extends C { |
+ foo() { |
+ return (() => eval("super.foo()"))(); |
+ } |
} |
+ |
+assertEquals(42, new D().foo()); |