Bug 654301: Better interned string API, take 2. (r=Waldo)

This commit is contained in:
Chris Leary
2011-05-17 12:15:12 -07:00
parent fbd1a8db1f
commit d3a2ee665f
41 changed files with 403 additions and 292 deletions

View File

@@ -144,9 +144,9 @@ NPIdentifierToString(NPIdentifier id)
}
static inline NPIdentifier
StringToNPIdentifier(JSString *str)
StringToNPIdentifier(JSContext *cx, JSString *str)
{
return JSIdToNPIdentifier(INTERNED_STRING_TO_JSID(str));
return JSIdToNPIdentifier(INTERNED_STRING_TO_JSID(cx, str));
}
static inline bool