No bug - Fix some style issues in DOM code.

This commit is contained in:
Ms2ger
2013-11-11 09:04:41 +01:00
parent 167b7be681
commit 503d7fdd5e
58 changed files with 182 additions and 166 deletions

View File

@@ -1046,7 +1046,7 @@ PluginScriptableObjectParent::AnswerEnumerate(InfallibleTArray<PPluginIdentifier
// Because of GC hazards, all identifiers returned from enumerate
// must be made permanent.
if (_identifierisstring(ids[index])) {
JS::RootedString str(cx, NPIdentifierToString(ids[index]));
JS::Rooted<JSString*> str(cx, NPIdentifierToString(ids[index]));
if (!JS_StringHasBeenInterned(cx, str)) {
DebugOnly<JSString*> str2 = JS_InternJSString(cx, str);
NS_ASSERTION(str2 == str, "Interning a JS string which is currently an ID should return itself.");