JavaScript: Show character code when reporting unexpected character.

This commit is contained in:
Max Schaefer
2019-03-21 10:41:29 +00:00
parent 8a693699fc
commit 1835028b93
7 changed files with 35 additions and 9 deletions

View File

@@ -0,0 +1 @@

View 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")