📄 regexp-unsupported-dot-all.js
/home/palash/git/site/node_modules/core-js/internals/regexp-unsupported-dot-all.js
Language: js • Lines: 11
'use strict';
var fails = require('../internals/fails');
var globalThis = require('../internals/global-this');

// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
var $RegExp = globalThis.RegExp;

module.exports = fails(function () {
  var re = $RegExp('.', 's');
  return !(re.dotAll && re.test('\n') && re.flags === 's');
});