Add test for early error in RegExp literals (#723)

This commit is contained in:
jugglinmike 2016-07-08 21:01:35 -04:00 committed by Tom Care
parent 7b1eddf6b0
commit 8d78eddcc6
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
// Copyright (C) 2016 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-literals-regular-expression-literals-static-semantics-early-errors
es6id: 11.8.5.1
description: >
RegularExpressionFlags :: RegularExpressionFlags IdentifierPart
- It is a Syntax Error if IdentifierPart contains a Unicode escape sequence.
negative: SyntaxError
---*/
/./\u0067;