diff --git a/object.js b/object.js index ba50d54..5d864cd 100755 --- a/object.js +++ b/object.js @@ -261,7 +261,7 @@ function(base, obj, non_strict){ //--------------------------------------------------------------------- // Prototype chain content access... -// trigger iteration stop... +// Value trigger iteration stop and to carry results... // // NOTE: we need Constructor(..) to make this so will deffer this to the // end... @@ -962,9 +962,11 @@ function Constructor(name, a, b, c){ }) // set generic raw instance constructor... _constructor.__rawinstance__ instanceof Function - || (_constructor.__rawinstance__ = - function(context, ...args){ - return RawInstance(context, this, ...args) }) + || Object.defineProperty(_constructor, '__rawinstance__', { + value: function(context, ...args){ + return RawInstance(context, this, ...args) }, + enumerable: false, + }) !!constructor_proto && (_constructor.__proto__ = constructor_proto) _constructor.prototype = proto diff --git a/package.json b/package.json index 22a3d83..888b0fe 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-object", - "version": "5.4.11", + "version": "5.4.12", "description": "", "main": "object.js", "scripts": { diff --git a/test.js b/test.js index b55d597..f48f15c 100755 --- a/test.js +++ b/test.js @@ -766,6 +766,13 @@ var cases = test.Cases({ assert(z.b == 'bbb', 'mixin content from C') assert(z.c == 'ccc', 'mixin content from C') + /*/ XXX + assert(C.mixout(z) === z, 'C.mixout(..) partial') + + assert('a' in z, 'post-mixout (partial) non mixed content retained') + assert('b' in z == false, 'post-mixout (partial) content gone') + assert('c' in z == false, 'post-mixout (partial) content gone') + //*/ }, })