Skip to content

Commit aa54d67

Browse files
author
Max Schaefer
committed
JavaScript: Update trap tests.
1 parent 99a4f34 commit aa54d67

File tree

98 files changed

+2224
-2157
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+2224
-2157
lines changed

javascript/extractor/tests/cfg/output/trap/classexpr1.js.trap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ isArgumentsObject(#20013)
5858
stmts(#20014,1,#20011,-2,"{}")
5959
hasLocation(#20014,#20009)
6060
stmtContainers(#20014,#20011)
61-
numlines(#20011,1,0,0)
6261
isMethod(#20008)
6362
#20015=*
6463
lines(#20015,#20001,"!class {};","")

javascript/extractor/tests/cfg/output/trap/classexpr2.js.trap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ isArgumentsObject(#20018)
7676
stmts(#20019,1,#20016,-2,"{}")
7777
hasLocation(#20019,#20014)
7878
stmtContainers(#20019,#20016)
79-
numlines(#20016,1,0,0)
8079
isMethod(#20013)
8180
#20020=*
8281
lines(#20020,#20001,"!class A {};","")

javascript/extractor/tests/cfg/output/trap/classexpr3.js.trap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ enclosingStmt(#20024,#20020)
104104
exprContainers(#20024,#20014)
105105
literals("args","args",#20024)
106106
bind(#20024,#20016)
107-
numlines(#20014,1,0,0)
108107
isMethod(#20011)
109108
#20025=*
110109
lines(#20025,#20001,"!class extends B {};","")

javascript/extractor/tests/cfg/output/trap/classexpr4.js.trap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ enclosingStmt(#20029,#20025)
122122
exprContainers(#20029,#20019)
123123
literals("args","args",#20029)
124124
bind(#20029,#20021)
125-
numlines(#20019,1,0,0)
126125
isMethod(#20016)
127126
#20030=*
128127
lines(#20030,#20001,"!class A extends B {};","")

javascript/extractor/tests/cfg/output/trap/fields.js.trap

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ literals("ctor","ctor",#20024)
9191
#20026=@"var;{ctor};{#20000}"
9292
variables(#20026,"ctor",#20000)
9393
bind(#20024,#20026)
94-
numlines(#20016,3,3,0)
9594
isMethod(#20012)
9695
#20027=*
9796
properties(#20027,#20007,3,8,"x;")
@@ -153,7 +152,6 @@ stmts(#20043,1,#20039,-2,"{}")
153152
locations_default(#20044,#10000,7,7,7,8)
154153
hasLocation(#20043,#20044)
155154
stmtContainers(#20043,#20039)
156-
numlines(#20039,1,1,0)
157155
isMethod(#20035)
158156
#20045=*
159157
properties(#20045,#20007,6,0,"static g() {}")
@@ -188,7 +186,6 @@ stmts(#20053,1,#20049,-2,"{}")
188186
locations_default(#20054,#10000,8,14,8,15)
189187
hasLocation(#20053,#20054)
190188
stmtContainers(#20053,#20049)
191-
numlines(#20049,1,1,0)
192189
isMethod(#20045)
193190
isStatic(#20045)
194191
#20055=*
@@ -307,7 +304,6 @@ literals("after","after",#20085)
307304
#20087=@"var;{after};{#20000}"
308305
variables(#20087,"after",#20000)
309306
bind(#20085,#20087)
310-
numlines(#20066,5,5,0)
311307
isMethod(#20062)
312308
#20088=*
313309
properties(#20088,#20055,3,8,"z;")

javascript/extractor/tests/cfg/output/trap/tst.js.trap

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,6 @@ hasLocation(#20060,#20061)
225225
enclosingStmt(#20060,#20058)
226226
exprContainers(#20060,#20005)
227227
literals("true","true",#20060)
228-
numlines(#20005,10,10,0)
229228
#20062=*
230229
stmts(#20062,14,#20001,1,"for (;a ... ntinue;")
231230
#20063=@"loc,{#10000},12,1,13,13"
@@ -345,7 +344,6 @@ stmts(#20094,0,#20090,1,";")
345344
locations_default(#20095,#10000,17,15,17,15)
346345
hasLocation(#20094,#20095)
347346
stmtContainers(#20094,#20069)
348-
numlines(#20069,4,4,0)
349347
#20096=*
350348
stmts(#20096,11,#20001,3,"try {\n ... lly {\n}")
351349
#20097=@"loc,{#10000},20,1,24,1"

javascript/extractor/tests/default-encoding/output/trap/latin1.js.trap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ stmts(#20016,1,#20004,-2,"{}")
6262
locations_default(#20017,#10000,1,18,1,19)
6363
hasLocation(#20016,#20017)
6464
stmtContainers(#20016,#20004)
65-
numlines(#20004,1,1,0)
6665
#20018=*
6766
lines(#20018,#20001,"function f(ä, ö) {}","
6867
")

javascript/extractor/tests/es2015/output/trap/array_pattern_with_rest.js.trap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ enclosingStmt(#20027,#20025)
106106
exprContainers(#20027,#20004)
107107
literals("ys","ys",#20027)
108108
bind(#20027,#20008)
109-
numlines(#20004,4,4,0)
110109
#20029=*
111110
lines(#20029,#20001,"function cdr(o) {","
112111
")

javascript/extractor/tests/es2015/output/trap/arrowfn.js.trap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ locations_default(#20030,#10000,1,31,1,36)
115115
hasLocation(#20029,#20030)
116116
exprContainers(#20029,#20019)
117117
literals("length","length",#20029)
118-
numlines(#20019,1,1,0)
119118
#20031=*
120119
stmts(#20031,2,#20001,1,"setInte ... 1000);")
121120
#20032=@"loc,{#10000},2,1,2,31"
@@ -167,7 +166,6 @@ literals("cnt","cnt",#20043)
167166
#20045=@"var;{cnt};{#20000}"
168167
variables(#20045,"cnt",#20000)
169168
bind(#20043,#20045)
170-
numlines(#20038,1,1,0)
171169
#20046=*
172170
exprs(#20046,3,#20033,1,"1000")
173171
#20047=@"loc,{#10000},2,26,2,29"
@@ -249,7 +247,6 @@ hasLocation(#20067,#20068)
249247
enclosingStmt(#20067,#20060)
250248
exprContainers(#20067,#20055)
251249
literals("Wake up!","""Wake up!""",#20067)
252-
numlines(#20055,1,1,0)
253250
#20069=*
254251
exprs(#20069,3,#20050,1,"60000")
255252
#20070=@"loc,{#10000},3,42,3,46"

javascript/extractor/tests/es2015/output/trap/class_accessors.js.trap

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ hasLocation(#20025,#20026)
9696
enclosingStmt(#20025,#20019)
9797
exprContainers(#20025,#20013)
9898
literals("_x","_x",#20025)
99-
numlines(#20013,3,3,0)
10099
isMethod(#20009)
101100
#20027=*
102101
properties(#20027,#20005,3,2,"set x(v ... +v;\n }")
@@ -192,7 +191,6 @@ enclosingStmt(#20052,#20040)
192191
exprContainers(#20052,#20031)
193192
literals("v","v",#20052)
194193
bind(#20052,#20034)
195-
numlines(#20031,3,3,0)
196194
isMethod(#20027)
197195
#20054=*
198196
properties(#20054,#20005,4,0,"constructor() {}")
@@ -221,7 +219,6 @@ isArgumentsObject(#20059)
221219
stmts(#20060,1,#20057,-2,"{}")
222220
hasLocation(#20060,#20055)
223221
stmtContainers(#20060,#20057)
224-
numlines(#20057,1,0,0)
225222
isMethod(#20054)
226223
#20061=*
227224
lines(#20061,#20001,"class A {","

0 commit comments

Comments
 (0)