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