Sign in
webkit
/
WebKit
/
8811b522c4d9fd9fbebc2e2caf8f1ebff78163f9
/
.
/
JSTests
/
es6
/
class_computed_static_methods.js
blob: f1d14907eadad9147a39555aa07ca230b857d420 [
file
] [
log
] [
blame
]
function
test
()
{
var
foo
=
"method"
;
class
C
{
static
[
foo
]()
{
return
3
;
}
}
return
typeof
C
.
method
===
"function"
&&
C
.
method
()
===
3
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);