mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 10:30:08 +00:00
reverted change back due to unexpected bugs...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d4fd394174
commit
ff63091784
@ -186,10 +186,10 @@ function makeConstructor(name, a, b){
|
||||
.replace(/Constructor/g, name))
|
||||
}
|
||||
|
||||
// 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
|
||||
// XXX it turns out we can't directly assign to .constructor.prototype
|
||||
// and by assigning directly to .__proto__ we lose some meta
|
||||
// information like function name...
|
||||
_constructor.__proto__ = cls_proto
|
||||
_constructor.prototype = proto
|
||||
_constructor.prototype.constructor = _constructor
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-object",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.4",
|
||||
"description": "",
|
||||
"main": "object.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user