Bug 1034689 part 2 - Add AssignJSFlatString and use it. r=bz,terrence
This commit is contained in:
@@ -1303,10 +1303,10 @@ _utf8fromidentifier(NPIdentifier id)
|
||||
}
|
||||
|
||||
JSString *str = NPIdentifierToString(id);
|
||||
nsAutoString autoStr;
|
||||
AssignJSFlatString(autoStr, JS_ASSERT_STRING_IS_FLAT(str));
|
||||
|
||||
return
|
||||
ToNewUTF8String(nsDependentString(::JS_GetInternedStringChars(str),
|
||||
::JS_GetStringLength(str)));
|
||||
return ToNewUTF8String(autoStr);
|
||||
}
|
||||
|
||||
int32_t
|
||||
|
||||
Reference in New Issue
Block a user