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