Repository navigation
devtools: Rework debugger value structure - #43587
Conversation
The WebIDLs for values were duplicated in PropertyDescriptor and EvalResultValue, with duplicated handlers across the code. General cleanup of how debugger values are passed from debugger.js and how the conversion from JS and to JSON happens. There shouldn't be a behaviour change. Co-authored-by: atbrakhi <[email protected]> Signed-off-by: eri <[email protected]>
|
Apologies for the long diff. There are quite a few connected things that needed to change together. @atbrakhi and I spent some time brainstorming different ways of handling the values. Improving how this is handled is quite important, since the entire inspecting objects / properties is already getting too complex, and this was blocking new patches for more advanced features. The main issue is As a bonus, we got rid of one of the two very similar functions in It's a bit late now, but I may come back tomorrow to do a general style review pass, since I don't like how nested some things ended up. |
Signed-off-by: eri <[email protected]>
Co-authored-by: atbrakhi <[email protected]> Signed-off-by: eri <[email protected]>
|
Thanks for reviewing! :) |
The WebIDLs for values were duplicated in PropertyDescriptor and EvalResultValue, with duplicated handlers across the code.
General cleanup of how debugger values are passed from debugger.js and how the conversion from JS and to JSON happens.
There shouldn't be a behaviour change.
Testing: Existing devtools tests and manual testing
Part of: #36027