Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9313945
regexp-unsupported-ncg.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
388 B
Subscribers
None
regexp-unsupported-ncg.js
View Options
var
fails
=
require
(
'../internals/fails'
);
var
global
=
require
(
'../internals/global'
);
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
var
$RegExp
=
global
.
RegExp
;
module
.
exports
=
fails
(
function
()
{
var
re
=
$RegExp
(
'(?<a>b)'
,
'g'
);
return
re
.
exec
(
'b'
).
groups
.
a
!==
'b'
||
'b'
.
replace
(
re
,
'$<a>c'
)
!==
'bc'
;
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 12:03 PM (2 d, 15 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3357721
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment