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