summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/intl402/Number/prototype/toLocaleString/taint-Intl-NumberFormat.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/intl402/Number/prototype/toLocaleString/taint-Intl-NumberFormat.js')
-rw-r--r--js/src/tests/test262/intl402/Number/prototype/toLocaleString/taint-Intl-NumberFormat.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/js/src/tests/test262/intl402/Number/prototype/toLocaleString/taint-Intl-NumberFormat.js b/js/src/tests/test262/intl402/Number/prototype/toLocaleString/taint-Intl-NumberFormat.js
new file mode 100644
index 0000000000..ba9a755568
--- /dev/null
+++ b/js/src/tests/test262/intl402/Number/prototype/toLocaleString/taint-Intl-NumberFormat.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.2.1_4_2
+description: >
+ Tests that Number.prototype.toLocaleString uses the standard
+ built-in Intl.NumberFormat constructor.
+author: Norbert Lindenberg
+includes: [testIntl.js]
+---*/
+
+taintDataProperty(Intl, "NumberFormat");
+(0.0).toLocaleString();
+
+reportCompare(0, 0);