Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-08-15 18:41:36 +03:00
parent 59f78fb7d4
commit 135e173383
2 changed files with 4 additions and 1 deletions

View File

@ -1085,6 +1085,9 @@ function Constructor(name, a, b, c){
|| Object.defineProperty(proto, n, || Object.defineProperty(proto, n,
Object.assign( Object.assign(
Object.getOwnPropertyDescriptor(Function.prototype, n), 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(){ { value: function(){
return this.__call__[n](this, ...arguments) }, })) }) return this.__call__[n](this, ...arguments) }, })) })

View File

@ -28,6 +28,6 @@
"devDependencies": { "devDependencies": {
"c8": "^7.3.0", "c8": "^7.3.0",
"colors": "^1.4.0", "colors": "^1.4.0",
"ig-argv": "^2.11.2" "ig-argv": "^2.12.0"
} }
} }