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