archives

« Bugzilla Issues Index

#3505 — Should `regexp.compile(regexp, flags)` also no longer throws just like the RexExp constructor did in rev29 for consistency?



No, compile exists only as a method legacy that no body should ever use in new code.

Generalizing it to work better with RegExp subclasses is not needed and might encourage its continued use.