Sign in
webkit
/
WebKit
/
6a59c200745aa2ef26b1e56c44297ddf7c28ff78
/
.
/
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"
);