regexp-unsupported-dot-all.js 349 B

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