Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Patch Available
Description
When you give a constructor function a set of default parameters they don't get assigned to the object correctly.
The reason lies in the generated code:
MyStruct = function(args) {
this.value = null;
if (args) {
if (!args.value)
}
};
The check for results !args.value causes that the value to be only set if it is undefined.