Bug 589664 - Rewrite the JSON parser. r=njn, anticipating more review but getting it in-tree now for simplicity, even if more changes need to be made later

This commit is contained in:
Jeff Walden
2011-03-23 16:34:53 -07:00
parent 331c4df9c9
commit eabda9ae13
17 changed files with 1173 additions and 19 deletions

View File

@@ -219,3 +219,13 @@
* support likely to be made opt-in at some future time.
*/
#define OLD_GETTER_SETTER_METHODS 1
/*
* Embedders: don't change this: it's a bake-until-ready hack only!
*
* NB: Changing this value requires adjusting the pass/fail state of a handful
* of tests in ecma_5/JSON/ which the old parser implemented incorrectly.
* Also make sure to rename JSONSourceParser to just JSONParser when the
* old parser is removed completely.
*/
#define USE_OLD_AND_BUSTED_JSON_PARSER 0