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