Sign in
webkit
/
WebKit
/
f6013b2d8a67a21431419ad45d183d56cb11b105
/
.
/
JSTests
/
es6
/
class_computed_static_accessor_properties.js
blob: 23bcc8c9175847daa5e6e4ec6e5e7540d8f63d9a [
file
] [
log
] [
blame
]
function
test
()
{
var
garply
=
"foo"
,
grault
=
"bar"
,
baz
=
false
;
class
C
{
static
get
[
garply
]()
{
return
"foo"
;
}
static
set
[
grault
](
x
)
{
baz
=
x
;
}
}
C
.
bar
=
true
;
return
C
.
foo
===
"foo"
&&
baz
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);