Add various autorooting, bug 772303. r=terrence
This commit is contained in:
@@ -298,6 +298,9 @@ AtomizeInline(JSContext *cx, const jschar **pchars, size_t length,
|
||||
|
||||
SkipRoot skip(cx, &chars);
|
||||
|
||||
/* Workaround for hash values in AddPtr being inadvertently poisoned. */
|
||||
SkipRoot skip2(cx, &p);
|
||||
|
||||
if (ocb == TakeCharOwnership) {
|
||||
key = js_NewString(cx, const_cast<jschar *>(chars), length);
|
||||
if (!key)
|
||||
|
||||
Reference in New Issue
Block a user