mirror of
https://github.com/tc39/test262.git
synced 2025-07-25 23:14:47 +02:00
import() must not allow a escape sequence
This commit is contained in:
parent
e847c6ebb0
commit
54aba308b7
@ -0,0 +1,35 @@
|
|||||||
|
// Copyright (C) 2018 André Bargull. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-left-hand-side-expressions
|
||||||
|
description: >
|
||||||
|
"import" must not contain escape sequences.
|
||||||
|
info: |
|
||||||
|
5.1.5 Grammar Notation
|
||||||
|
|
||||||
|
Terminal symbols of the lexical, RegExp, and numeric string grammars are shown in fixed width
|
||||||
|
font, both in the productions of the grammars and throughout this specification whenever the
|
||||||
|
text directly refers to such a terminal symbol. These are to appear in a script exactly as
|
||||||
|
written. All terminal symbol code points specified in this way are to be understood as the
|
||||||
|
appropriate Unicode code points from the Basic Latin range, as opposed to any similar-looking
|
||||||
|
code points from other Unicode ranges.
|
||||||
|
|
||||||
|
CallExpression :
|
||||||
|
MemberExpressionArguments
|
||||||
|
SuperCall
|
||||||
|
ImportCall
|
||||||
|
CallExpressionArguments
|
||||||
|
CallExpressionTemplateLiteral
|
||||||
|
|
||||||
|
ImportCall :
|
||||||
|
import( AssignmentExpression )
|
||||||
|
negative:
|
||||||
|
phase: parse
|
||||||
|
type: SyntaxError
|
||||||
|
features: [dynamic-import]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
|
im\u0070ort('./empty_FIXTURE.js');
|
Loading…
x
Reference in New Issue
Block a user