var fails = require('./fails'); module.exports = fails(function () { // babel-minify transpiles RegExp('.', 'g') -> /./g and it causes SyntaxError var re = RegExp('(?b)', (typeof '').charAt(5)); return re.exec('b').groups.a !== 'b' || 'b'.replace(re, '$c') !== 'bc'; });