for (const value of validValues) { const pr = new Intl.PluralRules("en", { notation: value }); assert(pr.resolvedOptions().notation === value, `Resolved options should have notation ${value}`);
}
// Also test with String wrappers. for (const value of validValues) { const pr = new Intl.PluralRules("en", { notation: new String(value) }); assert(pr.resolvedOptions().notation === value, `Resolved options should have notation ${value}`);
}
for (const value of invalidValues) { assert.throws(RangeError, () => { new Intl.PluralRules("en", { notation: value });
}, `Exception should be thrown for ${value}`);
}
assert.throws(TypeError, () => { new Intl.PluralRules("en", { notation: Symbol("foo") });
}, `Exception should be thrown for symbol`);
reportCompare(0, 0);
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet am 2026-09-30)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.