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