diff --git a/test/Acornima.Tests/ParserTests.ReservedWords.cs b/test/Acornima.Tests/ParserTests.ReservedWords.cs index 731d7d5..9f9a736 100644 --- a/test/Acornima.Tests/ParserTests.ReservedWords.cs +++ b/test/Acornima.Tests/ParserTests.ReservedWords.cs @@ -22,14 +22,13 @@ private static IEnumerable GetAllReservedWords() public static IEnumerable IsKeywordMatchesAcornImplData => from word in GetAllReservedWords() from ecmaVersion in new[] { EcmaVersion.ES3, EcmaVersion.ES5, EcmaVersion.ES6, EcmaVersion.Latest } - from isModule in new[] { false, true } select new object[] { word, ecmaVersion, ecmaVersion < EcmaVersion.ES6 && word is "export" or "import" // in these cases we deliberately deviate from the original acornjs implementation ? false - : AcornUtils.WordsRegexp(AcornIdentifier.Keywords[ecmaVersion >= EcmaVersion.ES6 ? "6" : isModule ? "5module" : "5"]).IsMatch(word) + : AcornUtils.WordsRegexp(AcornIdentifier.Keywords[ecmaVersion >= EcmaVersion.ES6 ? "6" : "5"]).IsMatch(word) }; [Theory]