aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/compiler/promise-constructor.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/compiler/promise-constructor.js')
-rw-r--r--deps/v8/test/mjsunit/compiler/promise-constructor.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/compiler/promise-constructor.js b/deps/v8/test/mjsunit/compiler/promise-constructor.js
index 7cbae22705..ab2d720755 100644
--- a/deps/v8/test/mjsunit/compiler/promise-constructor.js
+++ b/deps/v8/test/mjsunit/compiler/promise-constructor.js
@@ -82,6 +82,7 @@ failWithMessage = (msg) => %AbortJS(msg);
function foo() {
return new Promise((a, b) => { throw new Error(); });
}
+ %PrepareFunctionForOptimization(foo);
function bar(i) {
let error = null;