mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 547814, r=jorendorff, sr=peterv.
This commit is contained in:
parent
78ed0e9792
commit
93ebb4ca17
@ -422,6 +422,10 @@ GetStringForArgument(JSContext* aCx,
|
||||
NS_ASSERTION(aIsJSON && aIsPrimitive, "Null pointer!");
|
||||
|
||||
if (JSVAL_IS_STRING(aVal)) {
|
||||
if (!JS_MakeStringImmutable(aCx, JSVAL_TO_STRING(aVal))) {
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
*aIsJSON = *aIsPrimitive = PR_FALSE;
|
||||
_retval = aVal;
|
||||
return NS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user