mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
![]() 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. |
||
---|---|---|
.. | ||
RegExp.js | ||
RegExp.prototype.exec.js | ||
RegExp.prototype.flags.js | ||
RegExp.prototype.source.js | ||
RegExp.prototype.test.js | ||
RegExp.prototype.toString.js |