Debian Codegraph @

js/src/tests/test262/language/module-code/export-expname-unpaired-surrogate.js

raw
1 // |reftest| error:SyntaxError module
2 // Copyright (C) 2020 the V8 project authors. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 description: >
6 ExportSpecifier : ModuleExportName
7 esid: prod-ExportSpecifier
8 info: |
9 ModuleExportName : StringLiteral
10
11 It is a Syntax Error if IsStringWellFormedUnicode of the StringValue of
12 StringLiteral is *false*.
13 flags: [module]
14 features: [arbitrary-module-namespace-names]
15 negative:
16 phase: parse
17 type: SyntaxError
18 ---*/
19
20 $DONOTEVALUATE();
21
22 export { Foo as "\uD83D" }
23
24 function Foo() {}
25