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