enums
enums copied to clipboard
Error in Enum constructor when using object
When i use the following object to instanciate an enum it works:
new enums.Enum({DEFAULT: {name: 'default'}});
But it will fail with the following:
new enums.Enum({DEFAULT: 'default'});