aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-crbug-772672.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-crbug-772672.js')
-rw-r--r--deps/v8/test/mjsunit/regress/regress-crbug-772672.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-crbug-772672.js b/deps/v8/test/mjsunit/regress/regress-crbug-772672.js
index 86e738344a..02ba84da30 100644
--- a/deps/v8/test/mjsunit/regress/regress-crbug-772672.js
+++ b/deps/v8/test/mjsunit/regress/regress-crbug-772672.js
@@ -4,8 +4,10 @@
// Flags: --allow-natives-syntax
-function foo() { return new Array(120 * 1024); }
-
+function foo() {
+ return new Array(120 * 1024);
+};
+%PrepareFunctionForOptimization(foo);
foo()[0] = 0.1;
%OptimizeFunctionOnNextCall(foo);
foo();