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