mirror of
https://github.com/flynx/object.js.git
synced 2025-10-30 11:00:08 +00:00
minor tweak to constructor metadata...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6210576e19
commit
d4fd394174
@ -186,7 +186,10 @@ function makeConstructor(name, a, b){
|
|||||||
.replace(/Constructor/g, name))
|
.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 = proto
|
||||||
_constructor.prototype.constructor = _constructor
|
_constructor.prototype.constructor = _constructor
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-object",
|
"name": "ig-object",
|
||||||
"version": "1.0.2",
|
"version": "1.0.3",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "object.js",
|
"main": "object.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user