minor tweak to constructor metadata...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2018-08-19 14:57:49 +03:00
parent 6210576e19
commit d4fd394174
2 changed files with 5 additions and 2 deletions

View File

@ -186,7 +186,10 @@ function makeConstructor(name, a, b){
.replace(/Constructor/g, name))
}
_constructor.__proto__ = cls_proto
// NOTE: we are not assigning to .__proto__ directly to preserve
// function metadata like it's name...
//_constructor.__proto__ = cls_proto
_constructor.__proto__.__proto__ = cls_proto
_constructor.prototype = proto
_constructor.prototype.constructor = _constructor

View File

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