| Index: test/mjsunit/string-oom-slow-json-stringify.js
|
| diff --git a/test/mjsunit/regress/regress-347906.js b/test/mjsunit/string-oom-slow-json-stringify.js
|
| similarity index 50%
|
| copy from test/mjsunit/regress/regress-347906.js
|
| copy to test/mjsunit/string-oom-slow-json-stringify.js
|
| index c751618928c93015679087ee1b500637657aa341..2f9965599a65598ebcf98c661a1d292ebbd937e0 100644
|
| --- a/test/mjsunit/regress/regress-347906.js
|
| +++ b/test/mjsunit/string-oom-slow-json-stringify.js
|
| @@ -2,13 +2,12 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// Flags: --allow-natives-syntax --harmony
|
| +var a = 'a';
|
| +for (var i = 0; i < 20; i++) a += a;
|
| +for (var i = 0; i < 8; i++) a = [a, a];
|
|
|
| -function foo() {
|
| - return Math.clz32(12.34);
|
| +function stringify() {
|
| + JSON.stringify(a);
|
| }
|
|
|
| -foo();
|
| -foo();
|
| -%OptimizeFunctionOnNextCall(foo);
|
| -foo();
|
| +assertThrows(stringify, RangeError);
|
|
|