jimblandy / DebuggerDocs

Mozilla JavaScript Debugging Documentation
37 stars 12 forks source link

WeakMap introspection #3

Open DavidBruant opened 12 years ago

DavidBruant commented 12 years ago

For now, there is no way to introspect weakmaps, maps and sets. For all, an accessor like .allKeys could do the job of enumerating all keys (which can be particularly useful for debugging WeakMaps).

Since WeakMap.prototype methods could be overridden in the debuggee, having reflection methods to map the prototype methods will also be necessary.

jimblandy commented 12 years ago

Absolutely. I'll file bugs for this tomorrow morning. On May 20, 2012 10:15 AM, "David Bruant" < reply@reply.github.com> wrote:

For now, there is no way to introspect weakmaps, maps and sets. For all, an accessor like .allKeys could do the job of enumerating all keys (which can be particularly useful for debugging WeakMaps).

Since WeakMap.prototype methods could be overridden in the debuggee, having reflection methods to map the prototype methods will also be necessary.


Reply to this email directly or view it on GitHub: https://github.com/jimblandy/DebuggerDocs/issues/3