hz-zhhq-app/node_modules/core-js/internals/regexp-unsupported-ncg.js

9 lines
288 B
JavaScript
Raw Normal View History

2025-01-22 10:53:47 +08:00
var fails = require('./fails');
module.exports = fails(function () {
// babel-minify transpiles RegExp('.', 'g') -> /./g and it causes SyntaxError
var re = RegExp('(?<a>b)', (typeof '').charAt(5));
return re.exec('b').groups.a !== 'b' ||
'b'.replace(re, '$<a>c') !== 'bc';
});