Bug 834826 - Eliminate or refactor various unnecessary stack roots, r=terrence.
This commit is contained in:
@@ -1187,7 +1187,7 @@ date_parse(JSContext *cx, unsigned argc, Value *vp)
|
||||
return true;
|
||||
}
|
||||
|
||||
UnrootedString str = ToString(cx, args[0]);
|
||||
UnrootedString str = ToString<CanGC>(cx, args[0]);
|
||||
if (!str)
|
||||
return false;
|
||||
|
||||
@@ -2860,7 +2860,7 @@ date_toLocaleFormat_impl(JSContext *cx, CallArgs args)
|
||||
if (args.length() == 0)
|
||||
return ToLocaleStringHelper(cx, thisObj, args.rval());
|
||||
|
||||
RootedString fmt(cx, ToString(cx, args[0]));
|
||||
RootedString fmt(cx, ToString<CanGC>(cx, args[0]));
|
||||
if (!fmt)
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user