aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/compiler/regress-966560-1.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/compiler/regress-966560-1.js')
-rw-r--r--deps/v8/test/mjsunit/compiler/regress-966560-1.js9
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/compiler/regress-966560-1.js b/deps/v8/test/mjsunit/compiler/regress-966560-1.js
index d4d04f23dd..e9ccd365eb 100644
--- a/deps/v8/test/mjsunit/compiler/regress-966560-1.js
+++ b/deps/v8/test/mjsunit/compiler/regress-966560-1.js
@@ -10,11 +10,16 @@ async function __f_3() {
async function __f_4() {
await x.then();
throw new Error();
-}
+};
+%PrepareFunctionForOptimization(__f_4);
async function __f_5(f) {
try {
await f();
} catch (e) {
}
}
-(async() => {; %OptimizeFunctionOnNextCall(__f_4); await __f_5(__f_3); })();
+(async () => {
+ ;
+ %OptimizeFunctionOnNextCall(__f_4);
+ await __f_5(__f_3);
+})();