mixed a minor bug...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-08-20 16:10:06 +03:00
parent 9d31f9f985
commit 1b42aa4b19
2 changed files with 2 additions and 3 deletions

View File

@ -188,8 +188,7 @@ function makeConstructor(name, a, b){
// set an informative .toString...
// NOTE: do this only if .toString(..) is not defined by user...
if(cls_proto
&& cls_proto.toString() == ({}).toString()){
if((cls_proto || {}).toString() == ({}).toString()){
// XXX is this the right way to go or should we set this openly???
Object.defineProperty(_constructor, 'toString', {
value: function(){

View File

@ -1,6 +1,6 @@
{
"name": "ig-object",
"version": "1.0.5",
"version": "1.0.6",
"description": "",
"main": "object.js",
"scripts": {