aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-crbug-631318-12.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-crbug-631318-12.js')
-rw-r--r--deps/v8/test/mjsunit/regress/regress-crbug-631318-12.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-crbug-631318-12.js b/deps/v8/test/mjsunit/regress/regress-crbug-631318-12.js
index f710bd0149..35fea62fe0 100644
--- a/deps/v8/test/mjsunit/regress/regress-crbug-631318-12.js
+++ b/deps/v8/test/mjsunit/regress/regress-crbug-631318-12.js
@@ -4,11 +4,16 @@
// Flags: --allow-natives-syntax
-function foo(x) { return x >>> x; }
+function foo(x) {
+ return x >>> x;
+}
foo(1);
foo(2);
-function bar(x) { foo(x); }
+function bar(x) {
+ foo(x);
+};
+%PrepareFunctionForOptimization(bar);
%OptimizeFunctionOnNextCall(bar);
assertThrows(() => bar(Symbol.toPrimitive));