mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
JavaScript: Show character code when reporting unexpected character.
This commit is contained in:
1
javascript/extractor/tests/encoding/input/zwsp.js
Normal file
1
javascript/extractor/tests/encoding/input/zwsp.js
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
26
javascript/extractor/tests/encoding/output/trap/zwsp.js.trap
Normal file
26
javascript/extractor/tests/encoding/output/trap/zwsp.js.trap
Normal file
@@ -0,0 +1,26 @@
|
||||
#10000=@"/zwsp.js;sourcefile"
|
||||
files(#10000,"/zwsp.js","zwsp","js",0)
|
||||
#10001=@"/;folder"
|
||||
folders(#10001,"/","")
|
||||
containerparent(#10001,#10000)
|
||||
#10002=@"loc,{#10000},0,0,0,0"
|
||||
locations_default(#10002,#10000,0,0,0,0)
|
||||
hasLocation(#10000,#10002)
|
||||
#20000=@"global_scope"
|
||||
scopes(#20000,0)
|
||||
#20001=@"script;{#10000},1,1"
|
||||
toplevels(#20001,0)
|
||||
#20002=@"loc,{#10000},1,1,1,1"
|
||||
locations_default(#20002,#10000,1,1,1,1)
|
||||
hasLocation(#20001,#20002)
|
||||
#20003=*
|
||||
jsParseErrors(#20003,#20001,"Error: Unexpected character '' (U+200B)","
|
||||
")
|
||||
hasLocation(#20003,#20002)
|
||||
#20004=*
|
||||
lines(#20004,#20001,"","
|
||||
")
|
||||
hasLocation(#20004,#20002)
|
||||
numlines(#20001,1,0,0)
|
||||
numlines(#10000,1,0,0)
|
||||
filetype(#10000,"javascript")
|
||||
Reference in New Issue
Block a user