mirror of
https://github.com/flynx/object.js.git
synced 2025-10-29 02:20:08 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
30a7c99dcc
commit
4e0d0f279d
5
test.js
5
test.js
@ -794,6 +794,9 @@ var cases = test.Cases({
|
|||||||
// object.parent(C.prototype, '__call__', this)
|
// object.parent(C.prototype, '__call__', this)
|
||||||
// object.parent(C.prototype.__call__, this)
|
// object.parent(C.prototype.__call__, this)
|
||||||
// ..are not the same...
|
// ..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']) },
|
return object.parentCall(C.prototype.__call__, this).concat(['C']) },
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -801,7 +804,7 @@ var cases = test.Cases({
|
|||||||
var b = B()
|
var b = B()
|
||||||
var c = C()
|
var c = C()
|
||||||
|
|
||||||
// XXX BUG....
|
// XXX BUG: this will fail....
|
||||||
assert(
|
assert(
|
||||||
object.parent(C.prototype, '__call__', c)
|
object.parent(C.prototype, '__call__', c)
|
||||||
=== object.parent(C.prototype.__call__, c), '...')
|
=== object.parent(C.prototype.__call__, c), '...')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user