| Index: test/mjsunit/regress/regress-crbug-602184.js
|
| diff --git a/test/mjsunit/es6/classes-super.js b/test/mjsunit/regress/regress-crbug-602184.js
|
| similarity index 53%
|
| copy from test/mjsunit/es6/classes-super.js
|
| copy to test/mjsunit/regress/regress-crbug-602184.js
|
| index 7bdf4ba86c1c44c6915a046e7ad48cf463da2c20..c7d793bb0e58edc509b9dd0615d50e83a8ef2ee1 100644
|
| --- a/test/mjsunit/es6/classes-super.js
|
| +++ b/test/mjsunit/regress/regress-crbug-602184.js
|
| @@ -2,14 +2,16 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -"use strict";
|
| -
|
| -class Test {
|
| - m() {
|
| - super.length = 10;
|
| +function f(test, a) {
|
| + var v;
|
| + if (test) {
|
| + v = v|0;
|
| }
|
| + a[v] = 1;
|
| }
|
| +var v = new String();
|
| +f(false, v);
|
| +f(false, v);
|
|
|
| -var array = [];
|
| -Test.prototype.m.call(array);
|
| -assertEquals(10, array.length);
|
| +v = new Int32Array(10);
|
| +f(true, v);
|
|
|