Bug 1335645 - Part 6 - Fix warning caused by badly defined unicode characters draft
authorValentin Gosu <valentin.gosu@gmail.com>
Mon, 27 Feb 2017 19:36:59 +0100
changeset 490142 407f5d64d2bb30fa38d503104b16fca96ab355e8
parent 490141 6c344dad154043dceeb41d7ebc3559be5a8dd176
child 490143 a818c88923efe0576e2fb45c3fb72ee9734dbfd3
push id47011
push uservalentin.gosu@gmail.com
push dateMon, 27 Feb 2017 18:38:56 +0000
bugs1335645
milestone54.0a1
Bug 1335645 - Part 6 - Fix warning caused by badly defined unicode characters MozReview-Commit-ID: 1tC0chKljV0
netwerk/test/unit/test_idna2008.js
--- a/netwerk/test/unit/test_idna2008.js
+++ b/netwerk/test/unit/test_idna2008.js
@@ -1,26 +1,32 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+"use strict";
+
 const kTransitionalProcessing = false;
 
 // Four characters map differently under non-transitional processing:
 const labels = [
   // U+00DF LATIN SMALL LETTER SHARP S to "ss"
   "stra\u00dfe",
   // U+03C2 GREEK SMALL LETTER FINAL SIGMA to U+03C3 GREEK SMALL LETTER SIGMA
   "\u03b5\u03bb\u03bb\u03ac\u03c2",
   // U+200C ZERO WIDTH NON-JOINER in Indic script
   "\u0646\u0627\u0645\u0647\u200c\u0627\u06cc",
   // U+200D ZERO WIDTH JOINER in Arabic script
   "\u0dc1\u0dca\u200d\u0dbb\u0dd3",
 
   // But CONTEXTJ rules prohibit ZWJ and ZWNJ in non-Arabic or Indic scripts
   // U+200C ZERO WIDTH NON-JOINER in Latin script
-  "m\200cn",
+  "m\u200cn",
   // U+200D ZERO WIDTH JOINER in Latin script
-  "p\200dq",
+  "p\u200dq",
 ];
 
 const transitionalExpected = [
   "strasse",
   "xn--hxarsa5b",
   "xn--mgba3gch31f",
   "xn--10cl1a0b",
   "",