Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
288 bytes
|
Line | |
---|
1 | var fails = require('./fails');
|
---|
2 |
|
---|
3 | module.exports = fails(function () {
|
---|
4 | // babel-minify transpiles RegExp('.', 'g') -> /./g and it causes SyntaxError
|
---|
5 | var re = RegExp('(?<a>b)', (typeof '').charAt(5));
|
---|
6 | return re.exec('b').groups.a !== 'b' ||
|
---|
7 | 'b'.replace(re, '$<a>c') !== 'bc';
|
---|
8 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.