Revert "Add pluralrules to JS Intl"

This reverts commit 7686bceecff17f91758c8c6547a78e71ff3a8c38.
This commit is contained in:
wolfbeast 2018-04-25 08:26:25 +02:00 • committed by Roy Tam
commit 7e93e7170f
3 changed files with 134 additions and 542 deletions

View file

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

View file

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