blob: 9d62de0f16b8d256509a0ddd8e4f515fb462d4fd [file] [log] [blame]
// Copyright (C) 2017 Igalia, S. L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-initializepluralrules
description: >
Monkey-patching Object.prototype does not change the default
options for PluralRules as a null prototype is used.
info: |
InitializePluralRules ( collator, locales, options )
1. If _options_ is *undefined*, then
1. Let _options_ be ObjectCreate(*null*).
---*/
Object.prototype.type = "ordinal";
let pluralRules = new Intl.PluralRules("en");
assert.sameValue(pluralRules.resolvedOptions().type, "cardinal");