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