Javascript.options.relimitFrom MozillaZine Knowledge Base
[edit] BackgroundSome regular expressions can, based on the length of the text processed, take exponential amounts of time to run. As Mozilla’s JavaScript engine implements regular expressions, it is possible to hang a browser or other Mozilla application using one of these “exponentially explosive” regular expressions. To guard against this possibility, checks are performed internally to catch these regular expressions before they consume too much processing time. This preference determines whether problematic regular expressions should throw an exception, stopping execution. [edit] Possible values and their effects[edit] TrueThrow an exception when a regular expression backtracks more than n³ times, where n is the length of the input string. [edit] FalseIgnore large amounts of backtracking in regular expressions. (Default) [edit] Caveats
[edit] First checked in[edit] Has an effect in
[edit] Related bugs[edit] Related preferences |
|