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