Sign in
webkit
/
WebKit
/
90848d1a03498139e72a756e822580544ca9d408
/
.
/
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')"
);