Sign in
webkit
/
WebKit
/
c6951ff6f7d972427c05df8e7c39e3f2d74bf29c
/
.
/
JSTests
/
es6
/
function_name_property_function_statements.js
blob: c1f29994d8fe805ca0279fe671c9a0db882d3bc0 [
file
] [
log
] [
blame
]
function
test
()
{
function
foo
(){};
return
foo
.
name
===
'foo'
&&
(
function
(){}).
name
===
''
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);