Bug 1773368 - Remove deprecated internal typedefs for string-related types. r=iain
Differential Revision: https://phabricator.services.mozilla.com/D148955
This commit is contained in:
@@ -1888,7 +1888,7 @@ static bool Options(JSContext* cx, unsigned argc, Value* vp) {
|
||||
return false;
|
||||
}
|
||||
|
||||
RootedLinearString opt(cx, str->ensureLinear(cx));
|
||||
Rooted<JSLinearString*> opt(cx, str->ensureLinear(cx));
|
||||
if (!opt) {
|
||||
return false;
|
||||
}
|
||||
@@ -3920,7 +3920,7 @@ static bool Fuzzilli(JSContext* cx, unsigned argc, Value* vp) {
|
||||
if (!arg) {
|
||||
return false;
|
||||
}
|
||||
RootedLinearString operation(cx, StringToLinearString(cx, arg));
|
||||
Rooted<JSLinearString*> operation(cx, StringToLinearString(cx, arg));
|
||||
if (!operation) {
|
||||
return false;
|
||||
}
|
||||
@@ -5560,7 +5560,7 @@ static bool RegisterModule(JSContext* cx, unsigned argc, Value* vp) {
|
||||
Rooted<ModuleObject*> module(
|
||||
cx, args[1].toObject().as<ShellModuleObjectWrapper>().get());
|
||||
|
||||
RootedAtom specifier(cx, AtomizeString(cx, args[0].toString()));
|
||||
Rooted<JSAtom*> specifier(cx, AtomizeString(cx, args[0].toString()));
|
||||
if (!specifier) {
|
||||
return false;
|
||||
}
|
||||
@@ -5852,7 +5852,7 @@ static bool FrontendTest(JSContext* cx, unsigned argc, Value* vp,
|
||||
}
|
||||
|
||||
JSString* scriptContents = args[0].toString();
|
||||
RootedLinearString linearString(cx, scriptContents->ensureLinear(cx));
|
||||
Rooted<JSLinearString*> linearString(cx, scriptContents->ensureLinear(cx));
|
||||
if (!linearString) {
|
||||
return false;
|
||||
}
|
||||
@@ -7215,11 +7215,11 @@ static bool GetSelfHostedValue(JSContext* cx, unsigned argc, Value* vp) {
|
||||
JSSMSG_INVALID_ARGS, "getSelfHostedValue");
|
||||
return false;
|
||||
}
|
||||
RootedAtom srcAtom(cx, ToAtom<CanGC>(cx, args[0]));
|
||||
Rooted<JSAtom*> srcAtom(cx, ToAtom<CanGC>(cx, args[0]));
|
||||
if (!srcAtom) {
|
||||
return false;
|
||||
}
|
||||
RootedPropertyName srcName(cx, srcAtom->asPropertyName());
|
||||
Rooted<PropertyName*> srcName(cx, srcAtom->asPropertyName());
|
||||
return GlobalObject::getIntrinsicValue(cx, cx->global(), srcName,
|
||||
args.rval());
|
||||
}
|
||||
@@ -9993,7 +9993,7 @@ static bool PrintEnumeratedHelp(JSContext* cx, HandleObject obj,
|
||||
if (!JSString::ensureLinear(cx, v.toString())) {
|
||||
return false;
|
||||
}
|
||||
RootedLinearString input(cx, &v.toString()->asLinear());
|
||||
Rooted<JSLinearString*> input(cx, &v.toString()->asLinear());
|
||||
if (!ExecuteRegExpLegacy(cx, nullptr, regex, input, &ignored, true, &v)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user