Sign in
webkit
/
WebKit
/
7e009aa6ca8ae5803722c93d1141121f84c9ae8f
/
.
/
JSTests
/
es6
/
RegExp_is_subclassable_RegExp.prototype.test.js
blob: 08a736a14fae355b53552a8de637165db845135e [
file
] [
log
] [
blame
]
function
test
()
{
class
R extends
RegExp
{}
var
r
=
new
R
(
"baz"
);
return
r
.
test
(
"foobarbaz"
);
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);