diff options
author | Linus Groh <mail@linusgroh.de> | 2021-05-10 12:01:38 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-10 12:01:38 +0100 |
commit | 60064e204984db4df2bca866b42a8bc18d8d70ae (patch) | |
tree | 24686574958571ae46c74db2fcf763059bcc7f6b /Userland/DevTools/HackStudio/HackStudioWidget.cpp | |
parent | c93c2dc72c8fc9c90d372c4e785c48b170543228 (diff) | |
download | serenity-60064e204984db4df2bca866b42a8bc18d8d70ae.zip |
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.
Diffstat (limited to 'Userland/DevTools/HackStudio/HackStudioWidget.cpp')
0 files changed, 0 insertions, 0 deletions