From 4e0d0f279df521479bd6f13c4282fb336c601e18 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 1 Jan 2021 05:40:25 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test.js b/test.js index 9e061c6..3d77690 100755 --- a/test.js +++ b/test.js @@ -794,6 +794,9 @@ var cases = test.Cases({ // object.parent(C.prototype, '__call__', this) // object.parent(C.prototype.__call__, this) // ..are not the same... + // the problem is that .source(..) call @object.js:531 + // will get the instance (c) when getting by method while + // it should get the parent, i.e. c.__proto__ / c.constructor.prototype return object.parentCall(C.prototype.__call__, this).concat(['C']) }, }) @@ -801,7 +804,7 @@ var cases = test.Cases({ var b = B() var c = C() - // XXX BUG.... + // XXX BUG: this will fail.... assert( object.parent(C.prototype, '__call__', c) === object.parent(C.prototype.__call__, c), '...')