aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-stringAt-boundsCheck.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-stringAt-boundsCheck.js')
-rw-r--r--deps/v8/test/mjsunit/regress/regress-stringAt-boundsCheck.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-stringAt-boundsCheck.js b/deps/v8/test/mjsunit/regress/regress-stringAt-boundsCheck.js
index 2e14aa027c..c4e364851d 100644
--- a/deps/v8/test/mjsunit/regress/regress-stringAt-boundsCheck.js
+++ b/deps/v8/test/mjsunit/regress/regress-stringAt-boundsCheck.js
@@ -7,10 +7,10 @@
(() => {
function f(u) {
for (var j = 0; j < 20; ++j) {
- print("" + u.codePointAt());
+ print('' + u.codePointAt());
}
- }
-
+ };
+ %PrepareFunctionForOptimization(f);
f("test");
f("foo");
%OptimizeFunctionOnNextCall(f);