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