Sign in
webkit
/
WebKit
/
48415a06983b17e5e30ed8fe671d61bb5c21ccd0
/
.
/
JSTests
/
es6
/
RegExp_is_subclassable_RegExp.prototype.exec.js
blob: f996573fa901f68fdca8e5a59df62386b128fb31 [
file
] [
log
] [
blame
]
function
test
()
{
class
R extends
RegExp
{}
var
r
=
new
R
(
"baz"
,
"g"
);
return
r
.
exec
(
"foobarbaz"
)[
0
]
===
"baz"
&&
r
.
lastIndex
===
9
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);