diff --git a/object.js b/object.js index 972ebc8..d2d478b 100755 --- a/object.js +++ b/object.js @@ -1085,6 +1085,9 @@ function Constructor(name, a, b, c){ || Object.defineProperty(proto, n, Object.assign( Object.getOwnPropertyDescriptor(Function.prototype, n), + // NOTE: we can't use Function[n] directly because + // they in general test this for relation to + // function which will fail here... { value: function(){ return this.__call__[n](this, ...arguments) }, })) }) diff --git a/package.json b/package.json index 16558bc..54d7dcf 100755 --- a/package.json +++ b/package.json @@ -28,6 +28,6 @@ "devDependencies": { "c8": "^7.3.0", "colors": "^1.4.0", - "ig-argv": "^2.11.2" + "ig-argv": "^2.12.0" } }