Sign in
webkit
/
WebKit
/
6659f04ec3bbff1621ccf44eba2b60efe2e7781c
/
.
/
JSTests
/
es6
/
RegExp_y_and_u_flags_y_flag.js
blob: c1845978a5d6f7ab15b07cd52581c11459b20d5d [
file
] [
log
] [
blame
]
function
test
()
{
var
re
=
new
RegExp
(
'\\w'
,
'y'
);
re
.
exec
(
'xy'
);
return
(
re
.
exec
(
'xy'
)[
0
]
===
'y'
);
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);