Sign in
webkit
/
WebKit
/
437f2c5aff768557a26b18335a7cb15e0dbc5120
/
.
/
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"
);