| Index: test/mjsunit/harmony/regress/regress-typedarray-out-of-bounds.js
|
| diff --git a/test/mjsunit/compiler/regress-416359.js b/test/mjsunit/harmony/regress/regress-typedarray-out-of-bounds.js
|
| similarity index 56%
|
| copy from test/mjsunit/compiler/regress-416359.js
|
| copy to test/mjsunit/harmony/regress/regress-typedarray-out-of-bounds.js
|
| index 18cdc5e72800ab16c49ea2f2091b88ba1c873248..4db280aac9c18b7d07c9267a1bbd820807ed1b61 100644
|
| --- a/test/mjsunit/compiler/regress-416359.js
|
| +++ b/test/mjsunit/harmony/regress/regress-typedarray-out-of-bounds.js
|
| @@ -2,9 +2,9 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -"use strict"
|
| -function f() {
|
| - for (x in {a:0});
|
| +var a = new Int32Array(10);
|
| +function f(a) { a["-1"] = 15; }
|
| +for (var i = 0; i < 3; i++) {
|
| + f(a);
|
| }
|
| -
|
| -assertThrows(f);
|
| +assertEquals(undefined, a[-1]);
|
|
|