Index: test/mjsunit/es6/classes-super.js |
diff --git a/test/mjsunit/regress/regress-4659.js b/test/mjsunit/es6/classes-super.js |
similarity index 55% |
copy from test/mjsunit/regress/regress-4659.js |
copy to test/mjsunit/es6/classes-super.js |
index ff436bec1b07d6a708ddd0a0c454ada3c353985c..7bdf4ba86c1c44c6915a046e7ad48cf463da2c20 100644 |
--- a/test/mjsunit/regress/regress-4659.js |
+++ b/test/mjsunit/es6/classes-super.js |
@@ -1,12 +1,15 @@ |
// Copyright 2016 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: --harmony-function-name |
-var obj = { |
- get longerName(){ |
- return 42; |
+"use strict"; |
+ |
+class Test { |
+ m() { |
+ super.length = 10; |
} |
-}; |
-assertEquals(42, obj.longerName); |
+} |
+ |
+var array = []; |
+Test.prototype.m.call(array); |
+assertEquals(10, array.length); |