aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/debugger/debug/lazy-deopt-then-flush-bytecode.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/debugger/debug/lazy-deopt-then-flush-bytecode.js')
-rw-r--r--deps/v8/test/debugger/debug/lazy-deopt-then-flush-bytecode.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/v8/test/debugger/debug/lazy-deopt-then-flush-bytecode.js b/deps/v8/test/debugger/debug/lazy-deopt-then-flush-bytecode.js
index bc4cd29cee..6820dc05de 100644
--- a/deps/v8/test/debugger/debug/lazy-deopt-then-flush-bytecode.js
+++ b/deps/v8/test/debugger/debug/lazy-deopt-then-flush-bytecode.js
@@ -15,6 +15,7 @@ function listener(event, exec_state, event_data, data) {
if (event != Debug.DebugEvent.Break) return;
// Optimize foo.
+ %PrepareFunctionForOptimization(foo);
%OptimizeFunctionOnNextCall(foo);
foo();
assertOptimized(foo);