| Index: test/mjsunit/for-in.js
|
| diff --git a/test/mjsunit/for-in.js b/test/mjsunit/for-in.js
|
| index ab35e95ee3132c35bf20025ea3bbb6d56f5cc240..acda0f1971acf2c85cc359e461c907b4052bc577 100644
|
| --- a/test/mjsunit/for-in.js
|
| +++ b/test/mjsunit/for-in.js
|
| @@ -58,9 +58,9 @@ assertArrayEquals(a, props(o), "charcodes");
|
|
|
| var a = [];
|
| assertEquals(0, props(a).length, "proplen0");
|
| -a[Math.pow(2,30)-1] = 0;
|
| +a[Math.pow(2, 30) - 1] = 0;
|
| assertEquals(1, props(a).length, "proplen1");
|
| -a[Math.pow(2,31)-1] = 0;
|
| +a[Math.pow(2, 31) - 1] = 0;
|
| assertEquals(2, props(a).length, "proplen2");
|
| a[1] = 0;
|
| assertEquals(3, props(a).length, "proplen3");
|
| @@ -87,10 +87,10 @@ assertEquals('ab', result, "abgetset");
|
|
|
| // Test that for-in in the global scope works with a keyed property as "each".
|
| // Test outside a loop and in a loop for multiple iterations.
|
| -a = [1,2,3,4];
|
| -x = {foo:5, bar:6, zip:7, glep:9, 10:11};
|
| +a = [1, 2, 3, 4];
|
| +x = {foo: 5, bar: 6, zip: 7, glep: 9, 10: 11};
|
| delete x.bar;
|
| -y = {}
|
| +y = {};
|
|
|
| for (a[2] in x) {
|
| y[a[2]] = x[a[2]];
|
| @@ -105,7 +105,7 @@ assertEquals("undefined", typeof y[2], "y[2]");
|
| assertEquals("undefined", typeof y[0], "y[0]");
|
|
|
| for (i=0 ; i < 3; ++i) {
|
| - y = {}
|
| + y = {};
|
|
|
| for (a[2] in x) {
|
| y[a[2]] = x[a[2]];
|
|
|