test262/test/language/literals/regexp/early-err-flags-unicode-esc...

18 lines
520 B
JavaScript
Raw Normal View History

// 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:
phase: early
type: SyntaxError
---*/
throw "Test262: This statement should not be evaluated.";
/./\u0067;