summaryrefslogtreecommitdiff
path: root/test/suite/intl402/ch10/10.1/10.1.1_10.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/intl402/ch10/10.1/10.1.1_10.js')
-rw-r--r--test/suite/intl402/ch10/10.1/10.1.1_10.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/suite/intl402/ch10/10.1/10.1.1_10.js b/test/suite/intl402/ch10/10.1/10.1.1_10.js
new file mode 100644
index 000000000..dd4981264
--- /dev/null
+++ b/test/suite/intl402/ch10/10.1/10.1.1_10.js
@@ -0,0 +1,18 @@
+// Copyright 2012 Mozilla Corporation. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @description Tests that the behavior of a Record is not affected by adversarial
+ * changes to Object.prototype.
+ * @author Norbert Lindenberg
+ */
+
+$INCLUDE("testIntl.js");
+
+taintProperties(["localeMatcher", "kn", "kk", "kf"]);
+
+var locale = new Intl.Collator(undefined, {localeMatcher: "lookup"}).resolvedOptions().locale;
+if (!isCanonicalizedStructurallyValidLanguageTag(locale)) {
+ $ERROR("Collator returns invalid locale " + locale + ".");
+}
+