diff options
Diffstat (limited to 'js/src/tests/test262/intl402/String/prototype/localeCompare/taint-Intl-Collator.js')
-rw-r--r-- | js/src/tests/test262/intl402/String/prototype/localeCompare/taint-Intl-Collator.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/String/prototype/localeCompare/taint-Intl-Collator.js b/js/src/tests/test262/intl402/String/prototype/localeCompare/taint-Intl-Collator.js new file mode 100644 index 0000000000..2955b6a8f0 --- /dev/null +++ b/js/src/tests/test262/intl402/String/prototype/localeCompare/taint-Intl-Collator.js @@ -0,0 +1,16 @@ +// Copyright 2013 Mozilla Corporation. All rights reserved. +// This code is governed by the license found in the LICENSE file. + +/*--- +es5id: 13.1.1_6_2 +description: > + Tests that String.prototype.localeCompare uses the standard + built-in Intl.Collator constructor. +author: Norbert Lindenberg +includes: [testIntl.js] +---*/ + +taintDataProperty(Intl, "Collator"); +"a".localeCompare("b"); + +reportCompare(0, 0); |