findjsobjects -r
could support searching for objects it doesn't know about
#110
Labels
findjsobjects -r
could support searching for objects it doesn't know about
#110
Objects and arrays can refer to functions (as in the case of Node's EventEmitter), so it's useful to be able to give
findjsobjects -r
a closure address and have it look for objects that reference them. Today, it refuses, because it only supports looking for objects that it found during its traversal, but it doesn't record closures that it finds during its traversal (except in separate structures used forjsfunctions
).This came up while I was debugging http://smartos.org/bugview/MORAY-455. I was able to easily modify
findjsobjects -r
to support this, although it turned out not to help because the references I was looking for were in closure variables. Here's the diff:We should integrate this, since it can be useful.
The text was updated successfully, but these errors were encountered: