mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
JS: Update TRAP
This commit is contained in:
@@ -123,26 +123,32 @@ enclosingStmt(#20038,#20031)
|
||||
exprContainers(#20038,#20001)
|
||||
literals("Hello, world!","""Hello, world!""",#20038)
|
||||
#20039=*
|
||||
entry_cfg_node(#20039,#20001)
|
||||
#20040=@"loc,{#10000},2,1,2,0"
|
||||
locations_default(#20040,#10000,2,1,2,0)
|
||||
regexpterm(#20039,14,#20038,0,"Hello, world!")
|
||||
#20040=@"loc,{#10000},2,14,2,26"
|
||||
locations_default(#20040,#10000,2,14,2,26)
|
||||
hasLocation(#20039,#20040)
|
||||
regexpConstValue(#20039,"Hello, world!")
|
||||
#20041=*
|
||||
exit_cfg_node(#20041,#20001)
|
||||
hasLocation(#20041,#20019)
|
||||
entry_cfg_node(#20041,#20001)
|
||||
#20042=@"loc,{#10000},2,1,2,0"
|
||||
locations_default(#20042,#10000,2,1,2,0)
|
||||
hasLocation(#20041,#20042)
|
||||
#20043=*
|
||||
exit_cfg_node(#20043,#20001)
|
||||
hasLocation(#20043,#20019)
|
||||
successor(#20031,#20036)
|
||||
successor(#20038,#20032)
|
||||
successor(#20037,#20034)
|
||||
successor(#20036,#20037)
|
||||
successor(#20034,#20038)
|
||||
successor(#20032,#20041)
|
||||
successor(#20039,#20031)
|
||||
successor(#20032,#20043)
|
||||
successor(#20041,#20031)
|
||||
isNodejs(#20001)
|
||||
#20042=*
|
||||
lines(#20042,#20001,"#!/usr/bin/env node","
|
||||
#20044=*
|
||||
lines(#20044,#20001,"#!/usr/bin/env node","
|
||||
")
|
||||
#20043=@"loc,{#10000},1,1,1,19"
|
||||
locations_default(#20043,#10000,1,1,1,19)
|
||||
hasLocation(#20042,#20043)
|
||||
#20045=@"loc,{#10000},1,1,1,19"
|
||||
locations_default(#20045,#10000,1,1,1,19)
|
||||
hasLocation(#20044,#20045)
|
||||
numlines(#10000,2,1,0)
|
||||
filetype(#10000,"javascript")
|
||||
|
||||
@@ -233,122 +233,128 @@ enclosingStmt(#20082,#20075)
|
||||
exprContainers(#20082,#20001)
|
||||
literals("fs","'fs'",#20082)
|
||||
#20083=*
|
||||
stmts(#20083,2,#20001,1,"y = 42;")
|
||||
hasLocation(#20083,#20005)
|
||||
stmtContainers(#20083,#20001)
|
||||
#20084=*
|
||||
exprs(#20084,47,#20083,0,"y = 42")
|
||||
#20085=@"loc,{#10000},2,1,2,6"
|
||||
locations_default(#20085,#10000,2,1,2,6)
|
||||
hasLocation(#20084,#20085)
|
||||
enclosingStmt(#20084,#20083)
|
||||
exprContainers(#20084,#20001)
|
||||
regexpterm(#20083,14,#20082,0,"fs")
|
||||
#20084=@"loc,{#10000},1,19,1,20"
|
||||
locations_default(#20084,#10000,1,19,1,20)
|
||||
hasLocation(#20083,#20084)
|
||||
regexpConstValue(#20083,"fs")
|
||||
#20085=*
|
||||
stmts(#20085,2,#20001,1,"y = 42;")
|
||||
hasLocation(#20085,#20005)
|
||||
stmtContainers(#20085,#20001)
|
||||
#20086=*
|
||||
exprs(#20086,79,#20084,0,"y")
|
||||
hasLocation(#20086,#20027)
|
||||
enclosingStmt(#20086,#20083)
|
||||
exprs(#20086,47,#20085,0,"y = 42")
|
||||
#20087=@"loc,{#10000},2,1,2,6"
|
||||
locations_default(#20087,#10000,2,1,2,6)
|
||||
hasLocation(#20086,#20087)
|
||||
enclosingStmt(#20086,#20085)
|
||||
exprContainers(#20086,#20001)
|
||||
literals("y","y",#20086)
|
||||
#20087=@"var;{y};{#20000}"
|
||||
variables(#20087,"y",#20000)
|
||||
bind(#20086,#20087)
|
||||
#20088=*
|
||||
exprs(#20088,3,#20084,1,"42")
|
||||
hasLocation(#20088,#20031)
|
||||
enclosingStmt(#20088,#20083)
|
||||
exprs(#20088,79,#20086,0,"y")
|
||||
hasLocation(#20088,#20027)
|
||||
enclosingStmt(#20088,#20085)
|
||||
exprContainers(#20088,#20001)
|
||||
literals("42","42",#20088)
|
||||
#20089=*
|
||||
stmts(#20089,2,#20001,2,"console ... ename);")
|
||||
hasLocation(#20089,#20007)
|
||||
stmtContainers(#20089,#20001)
|
||||
literals("y","y",#20088)
|
||||
#20089=@"var;{y};{#20000}"
|
||||
variables(#20089,"y",#20000)
|
||||
bind(#20088,#20089)
|
||||
#20090=*
|
||||
exprs(#20090,13,#20089,0,"console ... lename)")
|
||||
#20091=@"loc,{#10000},3,1,3,23"
|
||||
locations_default(#20091,#10000,3,1,3,23)
|
||||
hasLocation(#20090,#20091)
|
||||
enclosingStmt(#20090,#20089)
|
||||
exprs(#20090,3,#20086,1,"42")
|
||||
hasLocation(#20090,#20031)
|
||||
enclosingStmt(#20090,#20085)
|
||||
exprContainers(#20090,#20001)
|
||||
literals("42","42",#20090)
|
||||
#20091=*
|
||||
stmts(#20091,2,#20001,2,"console ... ename);")
|
||||
hasLocation(#20091,#20007)
|
||||
stmtContainers(#20091,#20001)
|
||||
#20092=*
|
||||
exprs(#20092,14,#20090,-1,"console.log")
|
||||
#20093=@"loc,{#10000},3,1,3,11"
|
||||
locations_default(#20093,#10000,3,1,3,11)
|
||||
exprs(#20092,13,#20091,0,"console ... lename)")
|
||||
#20093=@"loc,{#10000},3,1,3,23"
|
||||
locations_default(#20093,#10000,3,1,3,23)
|
||||
hasLocation(#20092,#20093)
|
||||
enclosingStmt(#20092,#20089)
|
||||
enclosingStmt(#20092,#20091)
|
||||
exprContainers(#20092,#20001)
|
||||
#20094=*
|
||||
exprs(#20094,79,#20092,0,"console")
|
||||
hasLocation(#20094,#20035)
|
||||
enclosingStmt(#20094,#20089)
|
||||
exprs(#20094,14,#20092,-1,"console.log")
|
||||
#20095=@"loc,{#10000},3,1,3,11"
|
||||
locations_default(#20095,#10000,3,1,3,11)
|
||||
hasLocation(#20094,#20095)
|
||||
enclosingStmt(#20094,#20091)
|
||||
exprContainers(#20094,#20001)
|
||||
literals("console","console",#20094)
|
||||
bind(#20094,#20065)
|
||||
#20095=*
|
||||
exprs(#20095,0,#20092,1,"log")
|
||||
hasLocation(#20095,#20039)
|
||||
enclosingStmt(#20095,#20089)
|
||||
exprContainers(#20095,#20001)
|
||||
literals("log","log",#20095)
|
||||
#20096=*
|
||||
exprs(#20096,79,#20090,0,"__filename")
|
||||
hasLocation(#20096,#20043)
|
||||
enclosingStmt(#20096,#20089)
|
||||
exprs(#20096,79,#20094,0,"console")
|
||||
hasLocation(#20096,#20035)
|
||||
enclosingStmt(#20096,#20091)
|
||||
exprContainers(#20096,#20001)
|
||||
literals("__filename","__filename",#20096)
|
||||
bind(#20096,#20071)
|
||||
literals("console","console",#20096)
|
||||
bind(#20096,#20065)
|
||||
#20097=*
|
||||
stmts(#20097,9,#20001,3,"return arguments[0];")
|
||||
hasLocation(#20097,#20009)
|
||||
stmtContainers(#20097,#20001)
|
||||
exprs(#20097,0,#20094,1,"log")
|
||||
hasLocation(#20097,#20039)
|
||||
enclosingStmt(#20097,#20091)
|
||||
exprContainers(#20097,#20001)
|
||||
literals("log","log",#20097)
|
||||
#20098=*
|
||||
exprs(#20098,15,#20097,0,"arguments[0]")
|
||||
#20099=@"loc,{#10000},4,8,4,19"
|
||||
locations_default(#20099,#10000,4,8,4,19)
|
||||
hasLocation(#20098,#20099)
|
||||
enclosingStmt(#20098,#20097)
|
||||
exprs(#20098,79,#20092,0,"__filename")
|
||||
hasLocation(#20098,#20043)
|
||||
enclosingStmt(#20098,#20091)
|
||||
exprContainers(#20098,#20001)
|
||||
literals("__filename","__filename",#20098)
|
||||
bind(#20098,#20071)
|
||||
#20099=*
|
||||
stmts(#20099,9,#20001,3,"return arguments[0];")
|
||||
hasLocation(#20099,#20009)
|
||||
stmtContainers(#20099,#20001)
|
||||
#20100=*
|
||||
exprs(#20100,79,#20098,0,"arguments")
|
||||
hasLocation(#20100,#20051)
|
||||
enclosingStmt(#20100,#20097)
|
||||
exprs(#20100,15,#20099,0,"arguments[0]")
|
||||
#20101=@"loc,{#10000},4,8,4,19"
|
||||
locations_default(#20101,#10000,4,8,4,19)
|
||||
hasLocation(#20100,#20101)
|
||||
enclosingStmt(#20100,#20099)
|
||||
exprContainers(#20100,#20001)
|
||||
literals("arguments","arguments",#20100)
|
||||
bind(#20100,#20073)
|
||||
#20101=*
|
||||
exprs(#20101,3,#20098,1,"0")
|
||||
hasLocation(#20101,#20055)
|
||||
enclosingStmt(#20101,#20097)
|
||||
exprContainers(#20101,#20001)
|
||||
literals("0","0",#20101)
|
||||
#20102=*
|
||||
entry_cfg_node(#20102,#20001)
|
||||
#20103=@"loc,{#10000},1,1,1,0"
|
||||
locations_default(#20103,#10000,1,1,1,0)
|
||||
hasLocation(#20102,#20103)
|
||||
exprs(#20102,79,#20100,0,"arguments")
|
||||
hasLocation(#20102,#20051)
|
||||
enclosingStmt(#20102,#20099)
|
||||
exprContainers(#20102,#20001)
|
||||
literals("arguments","arguments",#20102)
|
||||
bind(#20102,#20073)
|
||||
#20103=*
|
||||
exprs(#20103,3,#20100,1,"0")
|
||||
hasLocation(#20103,#20055)
|
||||
enclosingStmt(#20103,#20099)
|
||||
exprContainers(#20103,#20001)
|
||||
literals("0","0",#20103)
|
||||
#20104=*
|
||||
exit_cfg_node(#20104,#20001)
|
||||
hasLocation(#20104,#20061)
|
||||
successor(#20101,#20098)
|
||||
successor(#20100,#20101)
|
||||
successor(#20098,#20097)
|
||||
successor(#20097,#20104)
|
||||
successor(#20089,#20094)
|
||||
successor(#20096,#20090)
|
||||
successor(#20095,#20092)
|
||||
successor(#20094,#20095)
|
||||
successor(#20092,#20096)
|
||||
successor(#20090,#20100)
|
||||
successor(#20083,#20086)
|
||||
successor(#20088,#20084)
|
||||
successor(#20086,#20088)
|
||||
successor(#20084,#20089)
|
||||
entry_cfg_node(#20104,#20001)
|
||||
#20105=@"loc,{#10000},1,1,1,0"
|
||||
locations_default(#20105,#10000,1,1,1,0)
|
||||
hasLocation(#20104,#20105)
|
||||
#20106=*
|
||||
exit_cfg_node(#20106,#20001)
|
||||
hasLocation(#20106,#20061)
|
||||
successor(#20103,#20100)
|
||||
successor(#20102,#20103)
|
||||
successor(#20100,#20099)
|
||||
successor(#20099,#20106)
|
||||
successor(#20091,#20096)
|
||||
successor(#20098,#20092)
|
||||
successor(#20097,#20094)
|
||||
successor(#20096,#20097)
|
||||
successor(#20094,#20098)
|
||||
successor(#20092,#20102)
|
||||
successor(#20085,#20088)
|
||||
successor(#20090,#20086)
|
||||
successor(#20088,#20090)
|
||||
successor(#20086,#20091)
|
||||
successor(#20075,#20078)
|
||||
successor(#20082,#20079)
|
||||
successor(#20081,#20082)
|
||||
successor(#20079,#20076)
|
||||
successor(#20078,#20081)
|
||||
successor(#20076,#20083)
|
||||
successor(#20102,#20075)
|
||||
successor(#20076,#20085)
|
||||
successor(#20104,#20075)
|
||||
isNodejs(#20001)
|
||||
numlines(#10000,4,4,0)
|
||||
filetype(#10000,"javascript")
|
||||
|
||||
Reference in New Issue
Block a user