mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-11-01 20:17:33 +09:00
Revert "Add pluralrules to JS Intl"
This reverts commit 7686bceecff17f91758c8c6547a78e71ff3a8c38.
This commit is contained in:
parent
85692a1198
commit
7e93e7170f
3 changed files with 134 additions and 542 deletions
|
|
@ -1,27 +0,0 @@
|
|||
// |reftest| skip-if(!this.hasOwnProperty("Intl")||!this.hasOwnProperty("addIntlExtras"))
|
||||
|
||||
// Tests the PluralRules.resolvedOptions function for overriden Array[Symbol.species].
|
||||
|
||||
addIntlExtras(Intl);
|
||||
|
||||
var pl = new Intl.PluralRules("de");
|
||||
|
||||
Object.defineProperty(Array, Symbol.species, {
|
||||
value: function() {
|
||||
return new Proxy(["?"], {
|
||||
get(t, pk, r) {
|
||||
return Reflect.get(t, pk, r);
|
||||
},
|
||||
defineProperty(t, pk) {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
var pluralCategories = pl.resolvedOptions().pluralCategories;
|
||||
|
||||
assertEqArray(pluralCategories, ["one", "other"]);
|
||||
|
||||
if (typeof reportCompare === "function")
|
||||
reportCompare(0, 0);
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
// |reftest| skip-if(!this.hasOwnProperty("Intl"))
|
||||
|
||||
// Tests the getCanonicalLocales function for overriden Array[Symbol.species].
|
||||
|
||||
Object.defineProperty(Array, Symbol.species, {
|
||||
value: function() {
|
||||
return new Proxy(["?"], {
|
||||
get(t, pk, r) {
|
||||
return Reflect.get(t, pk, r);
|
||||
},
|
||||
defineProperty(t, pk) {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
var arr = Intl.getCanonicalLocales("de-x-private");
|
||||
|
||||
assertEqArray(arr, ["de-x-private"]);
|
||||
|
||||
if (typeof reportCompare === "function")
|
||||
reportCompare(0, 0);
|
||||
Loading…
Add table
Add a link
Reference in a new issue