Sign in
webkit
/
WebKit
/
c6951ff6f7d972427c05df8e7c39e3f2d74bf29c
/
.
/
JSTests
/
es6
/
function_name_property_accessor_properties.js
blob: c3e4f9e0591044863cea60fe7579ef8324a2f3f6 [
file
] [
log
] [
blame
]
function
test
()
{
var
o
=
{
get
foo
(){},
set
foo
(
x
){}
};
var
descriptor
=
Object
.
getOwnPropertyDescriptor
(
o
,
"foo"
);
return
descriptor
.
get
.
name
===
"get foo"
&&
descriptor
.
set
.
name
===
"set foo"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);