mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1019804 - Use RootedString in shell's Run function. r=terrence
This commit is contained in:
parent
b8179ac337
commit
5c84e6a561
@ -1438,7 +1438,7 @@ Run(JSContext *cx, unsigned argc, jsval *vp)
|
||||
if (!thisobj)
|
||||
return false;
|
||||
|
||||
JSString *str = JS::ToString(cx, args[0]);
|
||||
RootedString str(cx, JS::ToString(cx, args[0]));
|
||||
if (!str)
|
||||
return false;
|
||||
args[0].setString(str);
|
||||
|
Loading…
Reference in New Issue
Block a user