Files
Huáng JùnliàngandGitHub 9d69fa1277 Improve module expression parsing/printing (#14980)
* fix: several ModuleExpression printing edgecases

* fix: end module expression's program before }

* fix: expect braceL after module

* refactor: introduce ensureNoLineTerminator

* use this.ensureNoLineTerminator

* update source-map fixtures

* address review comments

* consume eof when end is eof
2022-09-30 17:32:27 -04:00

15 lines
415 B
JSON

{
"version": 3,
"names": [
"m",
"foo",
"bar"
],
"sources": [
"fixtures/sourcemaps/ModuleExpression/input.js"
],
"sourcesContent": [
"const m = module { export const foo = \"foo\" };\nmodule {\n foo;\n bar;\n};\nfoo(module {});"
],
"mappings": "AAAA,MAAMA,CAAC,GAAG;EAAS,OAAO,MAAMC,GAAG,GAAG,KAAK;AAAC,CAAC;AAC7C;EACEA,GAAG;EACHC,GAAG;AACL,CAAC;AACDD,GAAG,CAAC,QAAQ,CAAC,CAAC"
}