LearnBoost/mongoose — Issue #685: Getter gets called with undefined parameter
Author: rashfael
Created: 2012-01-16 23:28:56+00:00
State: open

On creating an object from a model, the specified getter is called with an undefined parameter once (since version 2.3.8).

An example can be found here: https://gist.github.com/1623550

This leads to various errors (in my case NaN), If the getter does not check for existence.

I know it is bad practice not to check those things, but this call seems unnecessary.