aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/regress/regress-crbug-822284.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-crbug-822284.js')
-rw-r--r--deps/v8/test/mjsunit/regress/regress-crbug-822284.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-crbug-822284.js b/deps/v8/test/mjsunit/regress/regress-crbug-822284.js
index 97a38259e3..e27e12f69f 100644
--- a/deps/v8/test/mjsunit/regress/regress-crbug-822284.js
+++ b/deps/v8/test/mjsunit/regress/regress-crbug-822284.js
@@ -10,11 +10,11 @@ function foo(a) {
}
// Add '1' to the number to string table (as SeqString).
+%PrepareFunctionForOptimization(foo);
String.fromCharCode(49);
-
// Turn the SeqString into a ThinString via forced internalization.
const o = {};
-o[(1).toString()] = 1;
+o[1..toString()] = 1;
assertEquals(49, foo(1));
assertEquals(49, foo(1));