mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
JavaScript: Update trap tests.
This commit is contained in:
@@ -9,99 +9,99 @@ hasLocation(#10000,#10002)
|
||||
#20000=@"global_scope"
|
||||
scopes(#20000,0)
|
||||
#20001=@"script;{#10000},1,1"
|
||||
toplevels(#20001,0)
|
||||
#20002=@"loc,{#10000},1,1,4,1"
|
||||
locations_default(#20002,#10000,1,1,4,1)
|
||||
hasLocation(#20001,#20002)
|
||||
#20003=*
|
||||
lines(#20003,#20001,"declare module 'foo' {","
|
||||
#20002=*
|
||||
lines(#20002,#20001,"declare module 'foo' {","
|
||||
")
|
||||
#20004=@"loc,{#10000},1,1,1,22"
|
||||
locations_default(#20004,#10000,1,1,1,22)
|
||||
hasLocation(#20003,#20004)
|
||||
#20005=*
|
||||
lines(#20005,#20001," declare module.exports: {","
|
||||
#20003=@"loc,{#10000},1,1,1,22"
|
||||
locations_default(#20003,#10000,1,1,1,22)
|
||||
hasLocation(#20002,#20003)
|
||||
#20004=*
|
||||
lines(#20004,#20001," declare module.exports: {","
|
||||
")
|
||||
#20006=@"loc,{#10000},2,1,2,27"
|
||||
locations_default(#20006,#10000,2,1,2,27)
|
||||
hasLocation(#20005,#20006)
|
||||
#20005=@"loc,{#10000},2,1,2,27"
|
||||
locations_default(#20005,#10000,2,1,2,27)
|
||||
hasLocation(#20004,#20005)
|
||||
indentation(#10000,2," ",2)
|
||||
#20007=*
|
||||
lines(#20007,#20001," }","
|
||||
#20006=*
|
||||
lines(#20006,#20001," }","
|
||||
")
|
||||
#20008=@"loc,{#10000},3,1,3,3"
|
||||
locations_default(#20008,#10000,3,1,3,3)
|
||||
hasLocation(#20007,#20008)
|
||||
#20007=@"loc,{#10000},3,1,3,3"
|
||||
locations_default(#20007,#10000,3,1,3,3)
|
||||
hasLocation(#20006,#20007)
|
||||
indentation(#10000,3," ",2)
|
||||
#20009=*
|
||||
lines(#20009,#20001,"}","")
|
||||
#20010=@"loc,{#10000},4,1,4,1"
|
||||
locations_default(#20010,#10000,4,1,4,1)
|
||||
hasLocation(#20009,#20010)
|
||||
#20008=*
|
||||
lines(#20008,#20001,"}","")
|
||||
#20009=@"loc,{#10000},4,1,4,1"
|
||||
locations_default(#20009,#10000,4,1,4,1)
|
||||
hasLocation(#20008,#20009)
|
||||
numlines(#20001,4,4,0)
|
||||
#20011=*
|
||||
tokeninfo(#20011,6,#20001,0,"declare")
|
||||
#20012=@"loc,{#10000},1,1,1,7"
|
||||
locations_default(#20012,#10000,1,1,1,7)
|
||||
hasLocation(#20011,#20012)
|
||||
#20013=*
|
||||
tokeninfo(#20013,6,#20001,1,"module")
|
||||
#20014=@"loc,{#10000},1,9,1,14"
|
||||
locations_default(#20014,#10000,1,9,1,14)
|
||||
hasLocation(#20013,#20014)
|
||||
#20015=*
|
||||
tokeninfo(#20015,4,#20001,2,"'foo'")
|
||||
#20016=@"loc,{#10000},1,16,1,20"
|
||||
locations_default(#20016,#10000,1,16,1,20)
|
||||
hasLocation(#20015,#20016)
|
||||
#20017=*
|
||||
tokeninfo(#20017,8,#20001,3,"{")
|
||||
#20018=@"loc,{#10000},1,22,1,22"
|
||||
locations_default(#20018,#10000,1,22,1,22)
|
||||
hasLocation(#20017,#20018)
|
||||
#20019=*
|
||||
tokeninfo(#20019,6,#20001,4,"declare")
|
||||
#20020=@"loc,{#10000},2,3,2,9"
|
||||
locations_default(#20020,#10000,2,3,2,9)
|
||||
hasLocation(#20019,#20020)
|
||||
#20021=*
|
||||
tokeninfo(#20021,6,#20001,5,"module")
|
||||
#20022=@"loc,{#10000},2,11,2,16"
|
||||
locations_default(#20022,#10000,2,11,2,16)
|
||||
hasLocation(#20021,#20022)
|
||||
#20023=*
|
||||
tokeninfo(#20023,8,#20001,6,".")
|
||||
#20024=@"loc,{#10000},2,17,2,17"
|
||||
locations_default(#20024,#10000,2,17,2,17)
|
||||
hasLocation(#20023,#20024)
|
||||
#20025=*
|
||||
tokeninfo(#20025,6,#20001,7,"exports")
|
||||
#20026=@"loc,{#10000},2,18,2,24"
|
||||
locations_default(#20026,#10000,2,18,2,24)
|
||||
hasLocation(#20025,#20026)
|
||||
#20027=*
|
||||
tokeninfo(#20027,8,#20001,8,":")
|
||||
#20028=@"loc,{#10000},2,25,2,25"
|
||||
locations_default(#20028,#10000,2,25,2,25)
|
||||
hasLocation(#20027,#20028)
|
||||
#20029=*
|
||||
tokeninfo(#20029,8,#20001,9,"{")
|
||||
#20030=@"loc,{#10000},2,27,2,27"
|
||||
locations_default(#20030,#10000,2,27,2,27)
|
||||
hasLocation(#20029,#20030)
|
||||
#20031=*
|
||||
tokeninfo(#20031,8,#20001,10,"}")
|
||||
#20032=@"loc,{#10000},3,3,3,3"
|
||||
locations_default(#20032,#10000,3,3,3,3)
|
||||
hasLocation(#20031,#20032)
|
||||
#20010=*
|
||||
tokeninfo(#20010,6,#20001,0,"declare")
|
||||
#20011=@"loc,{#10000},1,1,1,7"
|
||||
locations_default(#20011,#10000,1,1,1,7)
|
||||
hasLocation(#20010,#20011)
|
||||
#20012=*
|
||||
tokeninfo(#20012,6,#20001,1,"module")
|
||||
#20013=@"loc,{#10000},1,9,1,14"
|
||||
locations_default(#20013,#10000,1,9,1,14)
|
||||
hasLocation(#20012,#20013)
|
||||
#20014=*
|
||||
tokeninfo(#20014,4,#20001,2,"'foo'")
|
||||
#20015=@"loc,{#10000},1,16,1,20"
|
||||
locations_default(#20015,#10000,1,16,1,20)
|
||||
hasLocation(#20014,#20015)
|
||||
#20016=*
|
||||
tokeninfo(#20016,8,#20001,3,"{")
|
||||
#20017=@"loc,{#10000},1,22,1,22"
|
||||
locations_default(#20017,#10000,1,22,1,22)
|
||||
hasLocation(#20016,#20017)
|
||||
#20018=*
|
||||
tokeninfo(#20018,6,#20001,4,"declare")
|
||||
#20019=@"loc,{#10000},2,3,2,9"
|
||||
locations_default(#20019,#10000,2,3,2,9)
|
||||
hasLocation(#20018,#20019)
|
||||
#20020=*
|
||||
tokeninfo(#20020,6,#20001,5,"module")
|
||||
#20021=@"loc,{#10000},2,11,2,16"
|
||||
locations_default(#20021,#10000,2,11,2,16)
|
||||
hasLocation(#20020,#20021)
|
||||
#20022=*
|
||||
tokeninfo(#20022,8,#20001,6,".")
|
||||
#20023=@"loc,{#10000},2,17,2,17"
|
||||
locations_default(#20023,#10000,2,17,2,17)
|
||||
hasLocation(#20022,#20023)
|
||||
#20024=*
|
||||
tokeninfo(#20024,6,#20001,7,"exports")
|
||||
#20025=@"loc,{#10000},2,18,2,24"
|
||||
locations_default(#20025,#10000,2,18,2,24)
|
||||
hasLocation(#20024,#20025)
|
||||
#20026=*
|
||||
tokeninfo(#20026,8,#20001,8,":")
|
||||
#20027=@"loc,{#10000},2,25,2,25"
|
||||
locations_default(#20027,#10000,2,25,2,25)
|
||||
hasLocation(#20026,#20027)
|
||||
#20028=*
|
||||
tokeninfo(#20028,8,#20001,9,"{")
|
||||
#20029=@"loc,{#10000},2,27,2,27"
|
||||
locations_default(#20029,#10000,2,27,2,27)
|
||||
hasLocation(#20028,#20029)
|
||||
#20030=*
|
||||
tokeninfo(#20030,8,#20001,10,"}")
|
||||
#20031=@"loc,{#10000},3,3,3,3"
|
||||
locations_default(#20031,#10000,3,3,3,3)
|
||||
hasLocation(#20030,#20031)
|
||||
#20032=*
|
||||
tokeninfo(#20032,8,#20001,11,"}")
|
||||
hasLocation(#20032,#20009)
|
||||
#20033=*
|
||||
tokeninfo(#20033,8,#20001,11,"}")
|
||||
hasLocation(#20033,#20010)
|
||||
#20034=*
|
||||
tokeninfo(#20034,0,#20001,12,"")
|
||||
#20035=@"loc,{#10000},4,2,4,1"
|
||||
locations_default(#20035,#10000,4,2,4,1)
|
||||
hasLocation(#20034,#20035)
|
||||
tokeninfo(#20033,0,#20001,12,"")
|
||||
#20034=@"loc,{#10000},4,2,4,1"
|
||||
locations_default(#20034,#10000,4,2,4,1)
|
||||
hasLocation(#20033,#20034)
|
||||
toplevels(#20001,0)
|
||||
#20035=@"loc,{#10000},1,1,4,1"
|
||||
locations_default(#20035,#10000,1,1,4,1)
|
||||
hasLocation(#20001,#20035)
|
||||
#20036=*
|
||||
entry_cfg_node(#20036,#20001)
|
||||
#20037=@"loc,{#10000},1,1,1,0"
|
||||
@@ -109,7 +109,7 @@ locations_default(#20037,#10000,1,1,1,0)
|
||||
hasLocation(#20036,#20037)
|
||||
#20038=*
|
||||
exit_cfg_node(#20038,#20001)
|
||||
hasLocation(#20038,#20035)
|
||||
hasLocation(#20038,#20034)
|
||||
successor(#20036,#20038)
|
||||
numlines(#10000,4,4,0)
|
||||
filetype(#10000,"javascript")
|
||||
|
||||
Reference in New Issue
Block a user