Sign in
webkit
/
WebKit
/
2e2cb00ac8a118644a070f63a7b5ac6a2db0e0aa
/
.
/
JSTests
/
es6
/
class_extends_null.js
blob: 20f9d417f55af0f128b2d1cb19767c2c6d10ea8f [
file
] [
log
] [
blame
]
function
test
()
{
class
C extends
null
{
constructor
()
{
return
Object
.
create
(
null
);
}
}
return
Function
.
prototype
.
isPrototypeOf
(
C
)
&&
Object
.
getPrototypeOf
(
C
.
prototype
)
===
null
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);