minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-11-24 03:03:08 +03:00
parent 5654019be5
commit f54090dcac
3 changed files with 14 additions and 5 deletions

View File

@ -261,7 +261,7 @@ function(base, obj, non_strict){
//--------------------------------------------------------------------- //---------------------------------------------------------------------
// Prototype chain content access... // 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 // NOTE: we need Constructor(..) to make this so will deffer this to the
// end... // end...
@ -962,9 +962,11 @@ function Constructor(name, a, b, c){
}) })
// set generic raw instance constructor... // set generic raw instance constructor...
_constructor.__rawinstance__ instanceof Function _constructor.__rawinstance__ instanceof Function
|| (_constructor.__rawinstance__ = || Object.defineProperty(_constructor, '__rawinstance__', {
function(context, ...args){ value: function(context, ...args){
return RawInstance(context, this, ...args) }) return RawInstance(context, this, ...args) },
enumerable: false,
})
!!constructor_proto !!constructor_proto
&& (_constructor.__proto__ = constructor_proto) && (_constructor.__proto__ = constructor_proto)
_constructor.prototype = proto _constructor.prototype = proto

View File

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

View File

@ -766,6 +766,13 @@ var cases = test.Cases({
assert(z.b == 'bbb', 'mixin content from C') assert(z.b == 'bbb', 'mixin content from C')
assert(z.c == 'ccc', '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')
//*/
}, },
}) })