summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/string-index.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/string-index.js')
-rw-r--r--deps/v8/test/mjsunit/string-index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/string-index.js b/deps/v8/test/mjsunit/string-index.js
index 1d6476ea1..315708ca5 100644
--- a/deps/v8/test/mjsunit/string-index.js
+++ b/deps/v8/test/mjsunit/string-index.js
@@ -61,7 +61,7 @@ assertEquals("undefined", typeof(foo[3]), "out of range");
assertEquals("undefined", typeof(foo[-2]), "negative index");
var S = new String("foo");
-assertEquals("foo", S);
+assertEquals(Object("foo"), S);
assertEquals("f", S[0], "string object");
assertEquals("f", S["0"], "string object");
S[0] = 'bente';
@@ -131,7 +131,7 @@ assertEquals(false, 3 in S);
assertEquals(false, "3" in S);
var N = new Number(43);
-assertEquals(43, N);
+assertEquals(Object(43), N);
N[-2] = "Alpha";
assertEquals("Alpha", N[-2]);
N[0] = "Zappa";