1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00
serenity/Userland/Libraries/LibJS/Tests/builtins/RegExp
Linus Groh 60064e2049 LibJS: Make invalid RegExp flags a SyntaxError at parse time
This patch changes the validation of RegExp flags (checking for
invalid and duplicate values) from a SyntaxError at runtime to a
SyntaxError at parse time - it's not something that's supposed to be
catchable.
As a nice side effect, this simplifies the RegExpObject constructor a
bit, as it can no longer throw an exception and doesn't have to validate
the flags itself.
2021-05-10 12:01:38 +01:00
..
RegExp.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
RegExp.prototype.exec.js LibRegex: Implement multiline stateful matches 2021-04-23 10:05:04 +02:00
RegExp.prototype.flags.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
RegExp.prototype.source.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
RegExp.prototype.test.js LibJS: Make invalid RegExp flags a SyntaxError at parse time 2021-05-10 12:01:38 +01:00
RegExp.prototype.toString.js Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00