Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / language / module-code / early-export-ill-formed-string.js
blob22a8248f11aafa4188374f29d03542ede7d620b5
1 // |reftest| error:SyntaxError module
2 // Copyright (C) 2020 Bradley Farias. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 description: >
6     Ill formed unicode cannot be an exported name
7 esid: sec-module-semantics
8 info: |
9     ModuleExportName : StringLiteral
11     It is a Syntax Error if IsStringWellFormedUnicode of the StringValue of StringLiteral is *false*.
12 flags: [module]
13 negative:
14   phase: parse
15   type: SyntaxError
16 features: [arbitrary-module-namespace-names]
17 ---*/
19 $DONOTEVALUATE();
21 // ðŸŒ™ is '\uD83C\uDF19'
22 export {Moon as "\uD83C",} from "./early-export-ill-formed-string.js";
23 export {"\uD83C"} from "./early-export-ill-formed-string.js";
24 import {'\uD83C' as Usagi} from "./early-export-ill-formed-string.js";
26 function Moon() {}