diff options
Diffstat (limited to 'js/src/tests/test262/intl402/PluralRules/prototype/select/tainting.js')
-rw-r--r-- | js/src/tests/test262/intl402/PluralRules/prototype/select/tainting.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/PluralRules/prototype/select/tainting.js b/js/src/tests/test262/intl402/PluralRules/prototype/select/tainting.js new file mode 100644 index 0000000000..19dc9eddc5 --- /dev/null +++ b/js/src/tests/test262/intl402/PluralRules/prototype/select/tainting.js @@ -0,0 +1,22 @@ +// Copyright 2016 Mozilla Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +esid: sec-intl-pluralrules-abstracts +description: > + Tests that the behavior of a Record is not affected by + adversarial changes to Object.prototype. +info: | + 1.1.1. InitializePluralRules (pluralRules, locales, options) + (...) + 1.1.1_6. Let t be ? GetOption(options, "type", "string", « "cardinal", "ordinal" », "cardinal"). +author: Zibi Braniecki +includes: [testIntl.js] +---*/ + +taintProperties(["type"]); + +var pr = new Intl.PluralRules(); +var time = pr.select(9); + +reportCompare(0, 0); |