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
349 B
11 lines
349 B
2 years ago
|
var fails = require('../internals/fails');
|
||
|
var global = require('../internals/global');
|
||
|
|
||
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
||
|
var $RegExp = global.RegExp;
|
||
|
|
||
|
module.exports = fails(function () {
|
||
|
var re = $RegExp('.', 's');
|
||
|
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
||
|
});
|