From 4f1e628107e63c5ffd4e7e74f355c151d271005d Mon Sep 17 00:00:00 2001 From: Mike Pennisi <mike@mikepennisi.com> Date: Sun, 8 Jul 2018 11:25:53 -0400 Subject: [PATCH] Remove erroneous test This test is technically valid because it does trigger a SyntaxError in conforming runtimes. However, it was authored and documented to test LegacyOctalEscapeSequence, but due to an apparent typo, it actually demonstrates an unrelated parsing error. Because 'legacy-octal-escape-sequence-stricts.js' sufficiently tests the restriction on LegacyOctalEscapeSequence, remove this test rather than correct it. --- test/language/literals/string/7.8.4-31-s.js | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 test/language/literals/string/7.8.4-31-s.js diff --git a/test/language/literals/string/7.8.4-31-s.js b/test/language/literals/string/7.8.4-31-s.js deleted file mode 100644 index f4c3a2fc23..0000000000 --- a/test/language/literals/string/7.8.4-31-s.js +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) 2012 Ecma International. All rights reserved. -// This code is governed by the BSD license found in the LICENSE file. - -/*--- -es5id: 7.8.4-31-s -description: An OctalEscapeSequence is not allowed in a String under Strict Mode -flags: [onlyStrict] ----*/ - - -assert.throws(SyntaxError, function() { - eval('var x = "\\" + "1";'); -}); -- GitLab