зеркало из https://github.com/mozilla/pjs.git
Disable bogus error check for { followed by a digit (228087, r=shaver).
This commit is contained in:
Родитель
a42e149448
Коммит
89a646c433
|
@ -1166,6 +1166,7 @@ doSimple:
|
|||
NULL, JSREPORT_ERROR,
|
||||
JSMSG_BAD_QUANTIFIER, state->cp - 1);
|
||||
return JS_FALSE;
|
||||
#if 0
|
||||
case '{':
|
||||
/* Treat left-curly in a non-quantifier context as an error only
|
||||
* if it's followed immediately by a decimal digit.
|
||||
|
@ -1178,6 +1179,7 @@ doSimple:
|
|||
return JS_FALSE;
|
||||
}
|
||||
/* fall thru... */
|
||||
#endif
|
||||
default:
|
||||
state->result = NewRENode(state, REOP_FLAT);
|
||||
if (!state->result)
|
||||
|
|
Загрузка…
Ссылка в новой задаче