cleanup...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-05-06 23:13:48 +03:00
parent 7e52b91859
commit 7552f07554

View File

@ -381,16 +381,14 @@ function(root, ...objects){
// adding and instance constructor as a class method would create // adding and instance constructor as a class method would create
// unneccessary restrictions both on the "class" object and on the // unneccessary restrictions both on the "class" object and on the
// instance... // instance...
// // NOTE: the following are not the same:
// XXX the following are not the same:
// var C = Constructor('C', function(){ .. }) // var C = Constructor('C', function(){ .. })
// and // and
// var C2 = Constructor('C2', { __call__: function(){ .. } }) // var C2 = Constructor('C2', { __call__: function(){ .. } })
// the difference is in C.prototype vs. C2.prototype, the first // the difference is in C.prototype vs. C2.prototype, the first
// being a function while the second is an object with a call // being a function while the second is an object with a call
// method... // method...
// Q: should the two cases produce the same result??? // XXX Q: should the two cases produce the same result???
// ...don't think so...
var makeRawInstance = var makeRawInstance =
module.makeRawInstance = module.makeRawInstance =
function(context, constructor, ...args){ function(context, constructor, ...args){