summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/compiler/array-find.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/compiler/array-find.js')
-rw-r--r--deps/v8/test/mjsunit/compiler/array-find.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/compiler/array-find.js b/deps/v8/test/mjsunit/compiler/array-find.js
index 419a758ac7..94fb2cb5df 100644
--- a/deps/v8/test/mjsunit/compiler/array-find.js
+++ b/deps/v8/test/mjsunit/compiler/array-find.js
@@ -10,6 +10,7 @@
return a.find(x => x === o.x);
}
+ %PrepareFunctionForOptimization(foo);
assertEquals(3, foo([1, 2, 3], {x:3}));
assertEquals(undefined, foo([0, 1, 2], {x:3}));
%OptimizeFunctionOnNextCall(foo);