Sign in
webkit
/
WebKit
/
db429512421596470240ded3a71f70ee20552ab3
/
.
/
LayoutTests
/
fast
/
regex
/
script-tests
/
constructor.js
blob: 1378adae9b8f9a68752ff3f87b944b1b78b71e6d [
file
] [
log
] [
blame
]
description
(
"This test checks use of the regexp constructor."
);
var
re
=
/abc/
;
shouldBeTrue
(
"re === RegExp(re)"
);
shouldBeTrue
(
"re !== new RegExp(re)"
);
shouldBeTrue
(
"re !== RegExp(re,'i')"
);
shouldBeTrue
(
"re !== new RegExp(re,'i')"
);