Sign in
webkit
/
WebKit
/
6ddf72b170615ecec95a6e91c205227cc12d556b
/
.
/
JSTests
/
es6
/
miscellaneous_RegExp_constructor_can_alter_flags.js
blob: 56491322bcb1776f95112d5be08611f9fd757b9d [
file
] [
log
] [
blame
]
function
test
()
{
return
new
RegExp
(
/./
im
,
"g"
).
global
===
true
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);