Why doesn't JavaScript allow assigning the property "name" on a Function?

Viewed 1350

See below for what happened in Firefox and Chrome's console:

> var f = function() {}
undefined
> f.name = 'f'
"f"
> f.name
""
> f.id = 1
1
> f.id
1

Why f.name = 'f' is a no-op?

1 Answers
Related