Index: test/mjsunit/es6/regress/regress-cr493566.js |
diff --git a/test/mjsunit/compiler/regress-469089.js b/test/mjsunit/es6/regress/regress-cr493566.js |
similarity index 58% |
copy from test/mjsunit/compiler/regress-469089.js |
copy to test/mjsunit/es6/regress/regress-cr493566.js |
index 6aff2b720305290570124cec0dd7a4a959f05694..0ae6ab0f441ce2682673815bf5ceeb08940fdd37 100644 |
--- a/test/mjsunit/compiler/regress-469089.js |
+++ b/test/mjsunit/es6/regress/regress-cr493566.js |
@@ -1,16 +1,16 @@ |
// 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. |
+"use strict"; |
-// Flags: --expose-gc |
+var global = this; |
(function() { |
- var __v_6 = false; |
- function f(val, idx) { |
- if (idx === 1) { |
- gc(); |
- __v_6 = (val === 0); |
+ class A { |
+ s() { |
+ super.bla = 10; |
} |
} |
- f(.1, 1); |
+ new A().s.call(global); |
+ assertEquals(10, global.bla); |
})(); |