Bug 1019804 - Use RootedString in shell's Run function. r=terrence

This commit is contained in:
Jan de Mooij 2014-06-04 14:32:48 +02:00
parent b8179ac337
commit 5c84e6a561

View File

@ -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);