ladybird/Tests/LibJS
davidot 56c425eec1 LibJS: Detect invalid unicode and stop lexing at that point
Previously we might swallow invalid unicode point which would skip valid
ascii characters. This could be dangerous as we might skip a '"' thus
not closing a string where we should.
This might have been exploitable as it would not have been clear what
code gets executed when looking at a script.

Another approach to this would be simply replacing all invalid
characters with the replacement character (this is what v8 does). But
our lexer and parser are currently not set up for such a change.
2021-12-29 16:57:23 +01:00
..
CMakeLists.txt LibJS: Add a specific test for invalid unicode characters in the lexer 2021-10-03 17:42:05 +02:00
test-invalid-unicode-js.cpp LibJS: Detect invalid unicode and stop lexing at that point 2021-12-29 16:57:23 +01:00
test-js.cpp Tests: Cast unused smart-pointer return values to void 2021-12-05 15:31:03 +01:00