Sign in
webkit
/
WebKit
/
3ee83bd7079b5d32a56631e7e3c8cee2e6830703
/
.
/
JSTests
/
es6
/
class_prototype_methods.js
blob: 9c0d7fd4045aa050e929bad778a4ea98dc069392 [
file
] [
log
] [
blame
]
function
test
()
{
class
C
{
method
()
{
return
2
;
}
}
return
typeof
C
.
prototype
.
method
===
"function"
&&
new
C
().
method
()
===
2
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);