Sign in
webkit
/
WebKit
/
9f9c15eb6fdc193d77c7e606d643d4b8ec49399b
/
.
/
JSTests
/
es6
/
class_extends.js
blob: 2b5ff4e7e6c5cc56e7d3694810d5313056231a83 [
file
] [
log
] [
blame
]
function
test
()
{
class
B
{}
class
C extends B
{}
return
new
C
()
instanceof B
&&
B
.
isPrototypeOf
(
C
);
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);