Add test for Javascript literal with an unpaired surrogate character

This commit is contained in:
Chris Smowton
2021-09-09 16:37:45 +01:00
parent 3404bcf265
commit 487ebdf173
3 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1 @@
| test.js:1:9:1:16 | "\\ud800" | \ufffd | "\\ud800" | \ufffd | test.js:1:9:1:16 | "\\ud800" |

View File

@@ -0,0 +1 @@
let s = "\ud800";

View File

@@ -0,0 +1,5 @@
import javascript
from StringLiteral sl
where sl.getFile().getBaseName() = "test.js"
select sl, sl.getValue(), sl.getRawValue(), sl.getStringValue(), sl.getUnderlyingValue()