aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-crbug-941743.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-crbug-941743.js')
-rw-r--r--deps/v8/test/mjsunit/regress/regress-crbug-941743.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-crbug-941743.js b/deps/v8/test/mjsunit/regress/regress-crbug-941743.js
index 8fc4ad4322..eaac4c4c4d 100644
--- a/deps/v8/test/mjsunit/regress/regress-crbug-941743.js
+++ b/deps/v8/test/mjsunit/regress/regress-crbug-941743.js
@@ -5,13 +5,14 @@
// Flags: --allow-natives-syntax --noenable-slow-asserts
// This call ensures that TurboFan won't inline array constructors.
-Array(2**30);
+Array(2 ** 30);
// Set up a fast holey smi array, and generate optimized code.
-let a = [1, 2, ,,, 3];
+let a = [1, 2, , , , 3];
function mapping(a) {
return a.map(v => v);
-}
+};
+%PrepareFunctionForOptimization(mapping);
mapping(a);
mapping(a);
%OptimizeFunctionOnNextCall(mapping);
@@ -19,8 +20,8 @@ mapping(a);
// Now lengthen the array, but ensure that it points to a non-dictionary
// backing store.
-a.length = (32 * 1024 * 1024)-1;
-a.fill(1,0);
+a.length = 32 * 1024 * 1024 - 1;
+a.fill(1, 0);
a.push(2);
a.length += 500;
// Now, the non-inlined array constructor should produce an array with