summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-crbug-557807.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-crbug-557807.js')
-rw-r--r--deps/v8/test/mjsunit/regress/regress-crbug-557807.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-crbug-557807.js b/deps/v8/test/mjsunit/regress/regress-crbug-557807.js
index a96bc99003..384579fd82 100644
--- a/deps/v8/test/mjsunit/regress/regress-crbug-557807.js
+++ b/deps/v8/test/mjsunit/regress/regress-crbug-557807.js
@@ -4,8 +4,13 @@
// Flags: --allow-natives-syntax
-function bar() { return { __proto__: this }; }
-function foo(a) { a[0] = 0.3; }
+function bar() {
+ return {__proto__: this};
+}
+function foo(a) {
+ a[0] = 0.3;
+};
+%PrepareFunctionForOptimization(foo);
foo(bar());
%OptimizeFunctionOnNextCall(foo);
foo(bar());