mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-07 20:17:37 +00:00
Undepend regexp source string so error message formatted arg refs into it work (332472, r=mrbkap).
This commit is contained in:
parent
878a413555
commit
daee041a64
@ -1927,7 +1927,10 @@ js_NewRegExp(JSContext *cx, JSTokenStream *ts,
|
||||
|
||||
state.context = cx;
|
||||
state.tokenStream = ts;
|
||||
state.cpbegin = state.cp = JSSTRING_CHARS(str);
|
||||
state.cp = js_UndependString(cx, str);
|
||||
if (!state.cp)
|
||||
goto out;
|
||||
state.cpbegin = state.cp;
|
||||
state.cpend = state.cp + len;
|
||||
state.flags = flags;
|
||||
state.parenCount = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user