Sign in
webkit
/
WebKit
/
4ba7fe936ef6ae9d62102c8eed5d38ba3f6d5cc4
/
.
/
JSTests
/
es6
/
RegExp_is_subclassable_basic_functionality.js
blob: db4fd87f9a45f911f9df15f9895b3825226ac879 [
file
] [
log
] [
blame
]
function
test
()
{
class
R extends
RegExp
{}
var
r
=
new
R
(
"baz"
,
"g"
);
return
r
.
global
&&
r
.
source
===
"baz"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);