JSON stringify and parse have the wrong length. bug 554082. r=waldo

This commit is contained in:
Robert Sayre 2010-04-01 16:19:45 -04:00
parent 6880c3a6fa
commit 842cbb7211

View File

@ -1222,8 +1222,8 @@ static JSFunctionSpec json_static_methods[] = {
#if JS_HAS_TOSOURCE
JS_FN(js_toSource_str, json_toSource, 0, 0),
#endif
JS_FN("parse", js_json_parse, 1, 0),
JS_FN("stringify", js_json_stringify, 1, 0),
JS_FN("parse", js_json_parse, 2, 0),
JS_FN("stringify", js_json_stringify, 3, 0),
JS_FS_END
};