Skip to content

Commit 5871b87

Browse files
committed
JS: Add a test for an unusual import syntax which is not support in any modern JS implementations, but may be supported by transpilers.
1 parent 67a362a commit 5871b87

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module Utils from "./utils";
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#10000=@"/import8.js;sourcefile"
2+
files(#10000,"/import8.js")
3+
#10001=@"/;folder"
4+
folders(#10001,"/")
5+
containerparent(#10001,#10000)
6+
#10002=@"loc,{#10000},0,0,0,0"
7+
locations_default(#10002,#10000,0,0,0,0)
8+
hasLocation(#10000,#10002)
9+
#20000=@"global_scope"
10+
scopes(#20000,0)
11+
#20001=@"script;{#10000},1,1"
12+
toplevels(#20001,0)
13+
#20002=@"loc,{#10000},1,1,1,1"
14+
locations_default(#20002,#10000,1,1,1,1)
15+
hasLocation(#20001,#20002)
16+
#20003=*
17+
js_parse_errors(#20003,#20001,"Error: Unexpected token","module Utils from ""./utils"";")
18+
#20004=@"loc,{#10000},1,8,1,8"
19+
locations_default(#20004,#10000,1,8,1,8)
20+
hasLocation(#20003,#20004)
21+
#20005=*
22+
lines(#20005,#20001,"module Utils from ""./utils"";","")
23+
#20006=@"loc,{#10000},1,1,1,28"
24+
locations_default(#20006,#10000,1,1,1,28)
25+
hasLocation(#20005,#20006)
26+
numlines(#20001,1,0,0)
27+
numlines(#10000,1,0,0)
28+
filetype(#10000,"javascript")

0 commit comments

Comments
 (0)