Skip to content

Commit 0ca055c

Browse files
committed
JS: Accept test changes.
1 parent 8dbd711 commit 0ca055c

8 files changed

Lines changed: 105 additions & 1040 deletions

javascript/extractor/tests/errors/output/trap/invalid-assignment-pattern.js.trap

Lines changed: 12 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -9,111 +9,20 @@ hasLocation(#10000,#10002)
99
#20000=@"global_scope"
1010
scopes(#20000,0)
1111
#20001=@"script;{#10000},1,1"
12-
#20002=*
13-
lines(#20002,#20001,"(x = 0) = y","
14-
")
15-
#20003=@"loc,{#10000},1,1,1,11"
16-
locations_default(#20003,#10000,1,1,1,11)
17-
hasLocation(#20002,#20003)
18-
numlines(#20001,1,1,0)
19-
#20004=*
20-
tokeninfo(#20004,8,#20001,0,"(")
21-
#20005=@"loc,{#10000},1,1,1,1"
22-
locations_default(#20005,#10000,1,1,1,1)
23-
hasLocation(#20004,#20005)
24-
#20006=*
25-
tokeninfo(#20006,6,#20001,1,"x")
26-
#20007=@"loc,{#10000},1,2,1,2"
27-
locations_default(#20007,#10000,1,2,1,2)
28-
hasLocation(#20006,#20007)
29-
#20008=*
30-
tokeninfo(#20008,8,#20001,2,"=")
31-
#20009=@"loc,{#10000},1,4,1,4"
32-
locations_default(#20009,#10000,1,4,1,4)
33-
hasLocation(#20008,#20009)
34-
#20010=*
35-
tokeninfo(#20010,3,#20001,3,"0")
36-
#20011=@"loc,{#10000},1,6,1,6"
37-
locations_default(#20011,#10000,1,6,1,6)
38-
hasLocation(#20010,#20011)
39-
#20012=*
40-
tokeninfo(#20012,8,#20001,4,")")
41-
#20013=@"loc,{#10000},1,7,1,7"
42-
locations_default(#20013,#10000,1,7,1,7)
43-
hasLocation(#20012,#20013)
44-
#20014=*
45-
tokeninfo(#20014,8,#20001,5,"=")
46-
#20015=@"loc,{#10000},1,9,1,9"
47-
locations_default(#20015,#10000,1,9,1,9)
48-
hasLocation(#20014,#20015)
49-
#20016=*
50-
tokeninfo(#20016,6,#20001,6,"y")
51-
#20017=@"loc,{#10000},1,11,1,11"
52-
locations_default(#20017,#10000,1,11,1,11)
53-
hasLocation(#20016,#20017)
54-
#20018=*
55-
tokeninfo(#20018,0,#20001,7,"")
56-
#20019=@"loc,{#10000},2,1,2,0"
57-
locations_default(#20019,#10000,2,1,2,0)
58-
hasLocation(#20018,#20019)
5912
toplevels(#20001,0)
60-
#20020=@"loc,{#10000},1,1,2,0"
61-
locations_default(#20020,#10000,1,1,2,0)
62-
hasLocation(#20001,#20020)
63-
#20021=@"var;{this};{#20000}"
64-
variables(#20021,"this",#20000)
65-
#20022=*
66-
stmts(#20022,2,#20001,0,"(x = 0) = y")
67-
hasLocation(#20022,#20003)
68-
stmt_containers(#20022,#20001)
69-
#20023=*
70-
exprs(#20023,47,#20022,0,"(x = 0) = y")
71-
hasLocation(#20023,#20003)
72-
enclosing_stmt(#20023,#20022)
73-
expr_containers(#20023,#20001)
74-
#20024=*
75-
exprs(#20024,63,#20023,0,"(x = 0)")
76-
#20025=@"loc,{#10000},1,1,1,7"
77-
locations_default(#20025,#10000,1,1,1,7)
78-
hasLocation(#20024,#20025)
79-
enclosing_stmt(#20024,#20022)
80-
expr_containers(#20024,#20001)
81-
#20026=*
82-
exprs(#20026,79,#20024,0,"x")
83-
hasLocation(#20026,#20007)
84-
enclosing_stmt(#20026,#20022)
85-
expr_containers(#20026,#20001)
86-
#20027=*
87-
exprs(#20027,79,#20023,1,"y")
88-
hasLocation(#20027,#20017)
89-
enclosing_stmt(#20027,#20022)
90-
expr_containers(#20027,#20001)
91-
literals("y","y",#20027)
92-
#20028=@"var;{y};{#20000}"
93-
variables(#20028,"y",#20000)
94-
bind(#20027,#20028)
95-
#20029=*
96-
entry_cfg_node(#20029,#20001)
97-
#20030=@"loc,{#10000},1,1,1,0"
98-
locations_default(#20030,#10000,1,1,1,0)
99-
hasLocation(#20029,#20030)
100-
#20031=*
101-
exit_cfg_node(#20031,#20001)
102-
hasLocation(#20031,#20019)
103-
successor(#20022,#20024)
104-
successor(#20027,#20023)
105-
successor(#20024,#20026)
106-
successor(#20026,#20027)
107-
successor(#20023,#20031)
108-
successor(#20029,#20022)
109-
#20032=*
110-
js_parse_errors(#20032,#20001,"Error: Unexpected assignment pattern.","(x = 0) = y
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: Parenthesized pattern","(x = 0) = y
11118
")
112-
hasLocation(#20032,#20007)
113-
#20033=*
114-
lines(#20033,#20001,"(x = 0) = y","
19+
hasLocation(#20003,#20002)
20+
#20004=*
21+
lines(#20004,#20001,"(x = 0) = y","
11522
")
116-
hasLocation(#20033,#20003)
23+
#20005=@"loc,{#10000},1,1,1,11"
24+
locations_default(#20005,#10000,1,1,1,11)
25+
hasLocation(#20004,#20005)
11726
numlines(#20001,1,0,0)
118-
numlines(#10000,1,1,0)
27+
numlines(#10000,1,0,0)
11928
filetype(#10000,"javascript")

javascript/extractor/tests/es2017/output/trap/invalid-async-fn.js.trap

Lines changed: 15 additions & 133 deletions
Original file line numberDiff line numberDiff line change
@@ -9,138 +9,20 @@ hasLocation(#10000,#10002)
99
#20000=@"global_scope"
1010
scopes(#20000,0)
1111
#20001=@"script;{#10000},1,1"
12-
#20002=*
13-
lines(#20002,#20001,"f = async ((x)) => x","")
14-
#20003=@"loc,{#10000},1,1,1,20"
15-
locations_default(#20003,#10000,1,1,1,20)
16-
hasLocation(#20002,#20003)
17-
numlines(#20001,1,1,0)
18-
#20004=*
19-
tokeninfo(#20004,6,#20001,0,"f")
20-
#20005=@"loc,{#10000},1,1,1,1"
21-
locations_default(#20005,#10000,1,1,1,1)
22-
hasLocation(#20004,#20005)
23-
#20006=*
24-
tokeninfo(#20006,8,#20001,1,"=")
25-
#20007=@"loc,{#10000},1,3,1,3"
26-
locations_default(#20007,#10000,1,3,1,3)
27-
hasLocation(#20006,#20007)
28-
#20008=*
29-
tokeninfo(#20008,6,#20001,2,"async")
30-
#20009=@"loc,{#10000},1,5,1,9"
31-
locations_default(#20009,#10000,1,5,1,9)
32-
hasLocation(#20008,#20009)
33-
#20010=*
34-
tokeninfo(#20010,8,#20001,3,"(")
35-
#20011=@"loc,{#10000},1,11,1,11"
36-
locations_default(#20011,#10000,1,11,1,11)
37-
hasLocation(#20010,#20011)
38-
#20012=*
39-
tokeninfo(#20012,8,#20001,4,"(")
40-
#20013=@"loc,{#10000},1,12,1,12"
41-
locations_default(#20013,#10000,1,12,1,12)
42-
hasLocation(#20012,#20013)
43-
#20014=*
44-
tokeninfo(#20014,6,#20001,5,"x")
45-
#20015=@"loc,{#10000},1,13,1,13"
46-
locations_default(#20015,#10000,1,13,1,13)
47-
hasLocation(#20014,#20015)
48-
#20016=*
49-
tokeninfo(#20016,8,#20001,6,")")
50-
#20017=@"loc,{#10000},1,14,1,14"
51-
locations_default(#20017,#10000,1,14,1,14)
52-
hasLocation(#20016,#20017)
53-
#20018=*
54-
tokeninfo(#20018,8,#20001,7,")")
55-
#20019=@"loc,{#10000},1,15,1,15"
56-
locations_default(#20019,#10000,1,15,1,15)
57-
hasLocation(#20018,#20019)
58-
#20020=*
59-
tokeninfo(#20020,8,#20001,8,"=>")
60-
#20021=@"loc,{#10000},1,17,1,18"
61-
locations_default(#20021,#10000,1,17,1,18)
62-
hasLocation(#20020,#20021)
63-
#20022=*
64-
tokeninfo(#20022,6,#20001,9,"x")
65-
#20023=@"loc,{#10000},1,20,1,20"
66-
locations_default(#20023,#10000,1,20,1,20)
67-
hasLocation(#20022,#20023)
68-
#20024=*
69-
tokeninfo(#20024,0,#20001,10,"")
70-
#20025=@"loc,{#10000},1,21,1,20"
71-
locations_default(#20025,#10000,1,21,1,20)
72-
hasLocation(#20024,#20025)
7312
toplevels(#20001,0)
74-
hasLocation(#20001,#20003)
75-
#20026=@"var;{this};{#20000}"
76-
variables(#20026,"this",#20000)
77-
#20027=*
78-
stmts(#20027,2,#20001,0,"f = async ((x)) => x")
79-
hasLocation(#20027,#20003)
80-
stmt_containers(#20027,#20001)
81-
#20028=*
82-
exprs(#20028,47,#20027,0,"f = async ((x)) => x")
83-
hasLocation(#20028,#20003)
84-
enclosing_stmt(#20028,#20027)
85-
expr_containers(#20028,#20001)
86-
#20029=*
87-
exprs(#20029,79,#20028,0,"f")
88-
hasLocation(#20029,#20005)
89-
enclosing_stmt(#20029,#20027)
90-
expr_containers(#20029,#20001)
91-
literals("f","f",#20029)
92-
#20030=@"var;{f};{#20000}"
93-
variables(#20030,"f",#20000)
94-
bind(#20029,#20030)
95-
#20031=*
96-
exprs(#20031,65,#20028,1,"async ((x)) => x")
97-
#20032=@"loc,{#10000},1,5,1,20"
98-
locations_default(#20032,#10000,1,5,1,20)
99-
hasLocation(#20031,#20032)
100-
enclosing_stmt(#20031,#20027)
101-
expr_containers(#20031,#20001)
102-
#20033=*
103-
scopes(#20033,1)
104-
scopenodes(#20031,#20033)
105-
scopenesting(#20033,#20000)
106-
#20034=@"var;{x};{#20033}"
107-
variables(#20034,"x",#20033)
108-
#20035=*
109-
exprs(#20035,78,#20031,0,"x")
110-
hasLocation(#20035,#20015)
111-
expr_containers(#20035,#20031)
112-
literals("x","x",#20035)
113-
decl(#20035,#20034)
114-
is_async(#20031)
115-
#20036=*
116-
exprs(#20036,79,#20031,-2,"x")
117-
hasLocation(#20036,#20023)
118-
expr_containers(#20036,#20031)
119-
literals("x","x",#20036)
120-
bind(#20036,#20034)
121-
#20037=*
122-
entry_cfg_node(#20037,#20001)
123-
#20038=@"loc,{#10000},1,1,1,0"
124-
locations_default(#20038,#10000,1,1,1,0)
125-
hasLocation(#20037,#20038)
126-
#20039=*
127-
exit_cfg_node(#20039,#20001)
128-
hasLocation(#20039,#20025)
129-
successor(#20027,#20029)
130-
successor(#20031,#20028)
131-
#20040=*
132-
entry_cfg_node(#20040,#20031)
133-
#20041=@"loc,{#10000},1,5,1,4"
134-
locations_default(#20041,#10000,1,5,1,4)
135-
hasLocation(#20040,#20041)
136-
#20042=*
137-
exit_cfg_node(#20042,#20031)
138-
hasLocation(#20042,#20025)
139-
successor(#20036,#20042)
140-
successor(#20035,#20036)
141-
successor(#20040,#20035)
142-
successor(#20029,#20031)
143-
successor(#20028,#20039)
144-
successor(#20037,#20027)
145-
numlines(#10000,1,1,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: Parenthesized pattern","f = async ((x)) => x")
18+
#20004=@"loc,{#10000},1,12,1,12"
19+
locations_default(#20004,#10000,1,12,1,12)
20+
hasLocation(#20003,#20004)
21+
#20005=*
22+
lines(#20005,#20001,"f = async ((x)) => x","")
23+
#20006=@"loc,{#10000},1,1,1,20"
24+
locations_default(#20006,#10000,1,1,1,20)
25+
hasLocation(#20005,#20006)
26+
numlines(#20001,1,0,0)
27+
numlines(#10000,1,0,0)
14628
filetype(#10000,"javascript")

0 commit comments

Comments
 (0)