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