-
- Downloads
Bug 1825339 - [devtools] Speed up makeDebuggeeValue. r=devtools-reviewers,nchevobbe
This method could early return for all primitive types as they already are "debuggee values". Then, when we have non primitives, getGlobalForObject should work and reliably return the value's global. The global is needed as Debugger.Object's makeDebuggeeValue only works for objects of the same global. There is just this edgecase around object coming from globals which are flagged as "invisible to debugger". We might want to return a special debuggee value instead of trying to instantiate this special Debugger.Object which mostly throws... I've also updated and added meaningful comments to clarify all this code. Differential Revision: https://phabricator.services.mozilla.com/D174040
Please register or sign in to comment