You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
485 B

define: DUK_OPT_NO_REGEXP_SUPPORT
introduced: 1.0.0
tags:
- ecmascript
description: >
Disable support for regular expressions. Regexp literals are treated as
a SyntaxError, RegExp constructor and prototype functions throw an error,
String.prototype.replace() throws an error if given a regexp search value,
String.prototype.split() throws an error if given a regexp separator value,
String.prototype.search() and String.prototype.match() throw an error
unconditionally.