UNPKG

363 BJavaScriptView Raw
1'use strict';
2var fails = require('../internals/fails');
3var global = require('../internals/global');
4
5// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
6var $RegExp = global.RegExp;
7
8module.exports = fails(function () {
9 var re = $RegExp('.', 's');
10 return !(re.dotAll && re.test('\n') && re.flags === 's');
11});