Sign in
webkit
/
WebKit
/
8811b522c4d9fd9fbebc2e2caf8f1ebff78163f9
/
.
/
JSTests
/
es6
/
function_name_property_object_methods_function.js
blob: b5821b9fcf6790c074ad378548f6042896f21752 [
file
] [
log
] [
blame
]
function
test
()
{
var
o
=
{
foo
:
function
(){},
bar
:
function
baz
(){}};
o
.
qux
=
function
(){};
return
o
.
foo
.
name
===
"foo"
&&
o
.
bar
.
name
===
"baz"
&&
o
.
qux
.
name
===
""
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);