Sign in
webkit
/
WebKit
/
ff4cb3c2323f3937e96e08f4f6fbe6c7755f9da5
/
.
/
JSTests
/
es6
/
miscellaneous_subclassables_Boolean_is_subclassable.js
blob: 2fcfdaf0cb50840688230da353b65a87d0b9a407 [
file
] [
log
] [
blame
]
function
test
()
{
class
C extends
Boolean
{}
var
c
=
new
C
(
true
);
return
c instanceof
Boolean
&&
c
==
true
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);