Backed out 3 changesets (bug 1946823) for causing SM bustages. CLOSED TREE

Backed out changeset 5e78edce046b (bug 1946823)
Backed out changeset b3e95d718426 (bug 1946823)
Backed out changeset 707bb5b43e16 (bug 1946823)
This commit is contained in:
Butkovits Atila
2025-02-11 23:05:52 +02:00
parent 81e58464d5
commit 479cd1267e
5 changed files with 7 additions and 27 deletions

View File

@@ -94,10 +94,6 @@ let ecmaGlobals = [
"String",
"Symbol",
"SyntaxError",
{
name: "Temporal",
nightly: true,
},
"TypeError",
"Uint16Array",
"Uint32Array",

View File

@@ -128,7 +128,6 @@ let ecmaGlobals = [
{ name: "String", insecureContext: true },
{ name: "Symbol", insecureContext: true },
{ name: "SyntaxError", insecureContext: true },
{ name: "Temporal", nightly: true, insecureContext: true },
{ name: "TypeError", insecureContext: true },
{ name: "Uint16Array", insecureContext: true },
{ name: "Uint32Array", insecureContext: true },

View File

@@ -102,7 +102,6 @@ let ecmaGlobals = [
{ name: "String", insecureContext: true },
{ name: "Symbol", insecureContext: true },
{ name: "SyntaxError", insecureContext: true },
{ name: "Temporal", nightly: true, insecureContext: true },
{ name: "TypeError", insecureContext: true },
{ name: "Uint16Array", insecureContext: true },
{ name: "Uint32Array", insecureContext: true },

View File

@@ -238,9 +238,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=933681
"toLocaleDateString", "toLocaleTimeString", "toDateString", "toTimeString",
"toISOString", "toJSON", "toSource", "toString", "valueOf", "constructor",
"toGMTString", Symbol.toPrimitive];
if (isNightlyBuild) {
gPrototypeProperties.Date.push("toTemporalInstant");
}
gConstructorProperties.Date = constructorProps(["UTC", "parse", "now"]);
gPrototypeProperties.Object =
["constructor", "toSource", "toString", "toLocaleString", "valueOf",
@@ -403,28 +400,17 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=933681
let local = lookupCallable(localProto);
is(method.length, local.length, "Function.length identical");
if (!method.length && !dontCall.includes(name)) {
try {
is(method.call(xray) + "", local.call(xray) + "",
"Xray and local method results stringify identically");
} catch (e) {
let expected = new RegExp(e.toString());
checkThrows(function() { method.call(xray) + ""; }, expected, "Xray and local methods both throw when stringified");
checkThrows(function() { local.call(xray) + ""; }, expected, "Xray and local methods both throw when stringified");
}
is(method.call(xray) + "", local.call(xray) + "",
"Xray and local method results stringify identically");
// If invoking this method returns something non-Xrayable (opaque), the
// stringification is going to return [object Object].
// This happens for set[@@iterator] and other Iterator objects.
let callable = lookupCallable(xray.wrappedJSObject);
if (!Cu.isOpaqueWrapper(method.call(xray)) && callable) {
try {
is(method.call(xray) + "",
callable.call(xray.wrappedJSObject) + "",
"Xray and waived method results stringify identically");
} catch (e) {
let expected = new RegExp(e.toString());
checkThrows(function() { method.call(xray) + ""; }, expected, "Xray and local methods both throw when stringified");
checkThrows(function() { callable.call(xray.wrappedJSObject) + ""; }, expected, "Xray and local methods both throw when stringified");
}
is(method.call(xray) + "",
callable.call(xray.wrappedJSObject) + "",
"Xray and waived method results stringify identically");
}
}
}

View File

@@ -8505,7 +8505,7 @@
# Experimental support for Temporal in JavaScript.
- name: javascript.options.experimental.temporal
type: bool
value: @IS_NIGHTLY_BUILD@
value: false
mirror: always
set_spidermonkey_pref: startup
#endif // JS_HAS_TEMPORAL_API