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