Chromium Code Reviews| Index: test/mjsunit/json2.js |
| diff --git a/test/mjsunit/json2.js b/test/mjsunit/json2.js |
| index cf20b909b4253caa7845d2cd6a63decd307149fb..39affe9330dbc12f6e9b432275baf238373361bd 100644 |
| --- a/test/mjsunit/json2.js |
| +++ b/test/mjsunit/json2.js |
| @@ -40,12 +40,13 @@ function TestStringify(expected, input) { |
| var array_1 = []; |
| var array_2 = []; |
| -array_1[100000] = 1; |
| -array_2[100000] = function() { return 1; }; |
| -var nulls = ""; |
| -for (var i = 0; i < 100000; i++) { |
| - nulls += 'null,'; |
| +array_1[1<<13] = 1; |
| +array_2[1<<13] = function() { return 1; }; |
| +var nulls = "null,"; |
| +for (var i = 0; i < 13; i++) { |
| + nulls += nulls; |
| } |
| + |
|
Igor Sheludko
2013/11/25 19:37:49
Nice!
|
| expected_1 = '[' + nulls + '1]'; |
| expected_2 = '[' + nulls + 'null]'; |
| TestStringify(expected_1, array_1); |