jsonLikeObj.getFoo.value( );
BACKGROUND: Consider the following object
var jsonLikeObj = Object.create(
{},
{getFoo: {
value: function() { return this.foo = 1; },
enumerable: false
}
}
);
DISCUSSION: Now I could more easily understand the following that does not work, than what does work.
What Does Not Work
jsonLikeObj.getFoo.value();
What Does Work
jsonLikeObj.getFoo();
QUESTION: What is going on?
Roddy