From dde5d8e5463f9ca484d17e0eda74d14d0010588b Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang <41213225+FrankYFTang@users.noreply.github.com> Date: Mon, 28 Jan 2019 20:58:27 -0800 Subject: [PATCH] Fix invalidLanguageTags array --- test/intl402/Locale/constructor-tag.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/intl402/Locale/constructor-tag.js b/test/intl402/Locale/constructor-tag.js index 112c09c329..1a228f491f 100644 --- a/test/intl402/Locale/constructor-tag.js +++ b/test/intl402/Locale/constructor-tag.js @@ -43,15 +43,15 @@ for (const [langtag, canonical] of Object.entries(validLanguageTags)) { } // unicode_language_subtag = alpha{2,3} | alpha{5,8}; -const invalidLanguageTags = { +const invalidLanguageTags = [ "X-u-foo", "Flob", "ZORK", "Blah-latn", "QuuX-latn-us", "SPAM-gb-x-Sausages-BACON-eggs", -}; +]; -for (const langtag of Object.entries(invalidLanguageTags)) { +for (const langtag of invalidLanguageTags) { assert.throws(RangeError, () => new Intl.Locale(langtag)); }