Chromium Code Reviews| Index: src/json.js |
| =================================================================== |
| --- src/json.js (revision 8095) |
| +++ src/json.js (working copy) |
| @@ -193,7 +193,9 @@ |
| // First entry is a string. Remaining entries are likely to be strings too. |
| var array_string = %QuoteJSONStringArray(value); |
| if (!IS_UNDEFINED(array_string)) { |
| - builder[builder.length - 1] = array_string; |
| + builder[builder.length - 1] = array_string; |
| + stack.pop(); |
|
Rico
2011/05/30 10:28:09
Please make a comment as to why we can do early re
sandholm
2011/05/30 10:43:42
Done.
|
| + return; |
| } else { |
| builder.push(%QuoteJSONString(val)); |
| for (var i = 1; i < len; i++) { |