test262/test/language/literals/regexp/S7.8.5_A1.2_T4.js

28 lines
571 B
JavaScript

// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-literals-regular-expression-literals
info: |
RegularExpressionLiteral::
/ RegularExpressionBody / RegularExpressionFlags
RegularExpressionBody ::
RegularExpressionFirstChar RegularExpressionChars
RegularExpressionChars::
[empty]
MemberExpression . IdentifierName
description: A regular expression may not be empty.
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
//
.source;