Index: test/mjsunit/string-index.js |
diff --git a/test/mjsunit/string-index.js b/test/mjsunit/string-index.js |
index 1d6476ea19373bf518f3ae3859d1db104adc66ed..315708ca5fb5e864c7350b3c36a40120de02dad7 100644 |
--- a/test/mjsunit/string-index.js |
+++ b/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"; |