summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio/HackStudioWidget.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2021-05-10 12:01:38 +0100
committerLinus Groh <mail@linusgroh.de>2021-05-10 12:01:38 +0100
commit60064e204984db4df2bca866b42a8bc18d8d70ae (patch)
tree24686574958571ae46c74db2fcf763059bcc7f6b /Userland/DevTools/HackStudio/HackStudioWidget.cpp
parentc93c2dc72c8fc9c90d372c4e785c48b170543228 (diff)
downloadserenity-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