ladybird/Userland
Timothy Flynn f1dd770a8a LibJS: Parse RegExp literals at AST creation time, not execution time
The spec requires that invalid RegExp literals must cause a Syntax Error
before the JavaScript is executed. See:
https://tc39.es/ecma262/#sec-patterns-static-semantics-early-errors

This is explicitly tested in the RegExp/property-escapes test262 tests.
For example, see unsupported-property-Line_Break.js:

    $DONOTEVALUATE();
    /\p{Line_Break}/u;

That RegExp literal is invalid because Line_Break is not a supported
Unicode property. $DONOTEVALUATE() just throws an exception when it is
executed. The test expects that this file will fail to be parsed.

Note that RegExp patterns can still be parsed at execution time by way
of "new RegExp(...)".
2021-07-30 21:26:31 +01:00
..
Applets LibGUI: Add a ClipboardClient for GUI::Clipboard 2021-07-27 23:49:25 +02:00
Applications MailSettings: Add basic mail settings dialog 2021-07-30 20:47:31 +02:00
Demos Userland: Add GUI::Window::add_menu() and use it everywhere 2021-07-21 21:24:26 +02:00
DevTools Profiler: Don't perform disassembly when disassembly view is hidden 2021-07-29 11:44:39 +02:00
DynamicLoader DynamicLoader+LibELF: Move self-relocation code into a separate file 2021-07-27 13:15:16 +02:00
Games Spider: Make statusbar high score display configurable 2021-07-27 16:53:56 +02:00
Libraries LibJS: Parse RegExp literals at AST creation time, not execution time 2021-07-30 21:26:31 +01:00
Services WindowServer: Don't draw separator between pin window & close for modals 2021-07-28 18:32:06 +02:00
Shell Shell: Don't assume that only the current shell may continue children 2021-07-17 02:00:24 +04:30
Utilities Utilities: Make 'less' act more like 'more' when emulating 'more' :^) 2021-07-29 01:23:07 +02:00
CMakeLists.txt Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00