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