Sign in
webkit
/
WebKit
/
14cb98a360e661c1b39a648e8ccc3be2e2757789
/
.
/
JSTests
/
es6
/
class_static_accessor_properties.js
blob: 556aacf706ba5216dcaf4171031155484328a78a [
file
] [
log
] [
blame
]
function
test
()
{
var
baz
=
false
;
class
C
{
static
get
foo
()
{
return
"foo"
;
}
static
set
bar
(
x
)
{
baz
=
x
;
}
}
C
.
bar
=
true
;
return
C
.
foo
===
"foo"
&&
baz
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);