Follow up fix for bug 623435. (r=brendan)

This commit is contained in:
Chris Leary 2011-01-25 17:16:38 -08:00
parent 07bf6c5ab7
commit e7ce40632d

View File

@ -252,6 +252,7 @@ bool
RegExp::parseFlags(JSContext *cx, JSString *flagStr, uintN *flagsOut)
{
size_t n = flagStr->length();
Anchor<JSString *> afs(flagStr);
const jschar *s = flagStr->getChars(cx);
if (!s)
return false;