Index: test/mjsunit/harmony/typedarrays.js |
diff --git a/test/mjsunit/harmony/typedarrays.js b/test/mjsunit/harmony/typedarrays.js |
index c70d8e5ea4b82371d7570bafdac12585885ccf6c..a2f3dccc7a11442808a4511c8ae2a98c75b2238b 100644 |
--- a/test/mjsunit/harmony/typedarrays.js |
+++ b/test/mjsunit/harmony/typedarrays.js |
@@ -500,6 +500,13 @@ function TestTypedArraysWithIllegalIndices() { |
assertEquals(10, a["-1e2"]); |
assertEquals(undefined, a[-1e2]); |
+ a["-0"] = 256; |
+ var s2 = " -0"; |
+ a[s2] = 255; |
+ assertEquals(undefined, a["-0"]); |
+ assertEquals(255, a[s2]); |
+ assertEquals(0, a[-0]); |
+ |
/* Chromium bug: 424619 |
* a[-Infinity] = 50; |
* assertEquals(undefined, a[-Infinity]); |
@@ -542,6 +549,13 @@ function TestTypedArraysWithIllegalIndicesStrict() { |
assertEquals(10, a["-1e2"]); |
assertEquals(undefined, a[-1e2]); |
+ a["-0"] = 256; |
+ var s2 = " -0"; |
+ a[s2] = 255; |
+ assertEquals(undefined, a["-0"]); |
+ assertEquals(255, a[s2]); |
+ assertEquals(0, a[-0]); |
+ |
/* Chromium bug: 424619 |
* a[-Infinity] = 50; |
* assertEquals(undefined, a[-Infinity]); |