| Summary: | "constructorFunction" and "prototypeObject" attributes should not be serialized objects | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [WebTools] JSDT | Reporter: | Michael Rennie <Michael_Rennie> | ||||
| Component: | Debug | Assignee: | Michael Rennie <Michael_Rennie> | ||||
| Status: | RESOLVED FIXED | QA Contact: | Simon Kaegi <simon_kaegi> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | thatnitind | ||||
| Version: | 3.2 | ||||||
| Target Milestone: | 3.3 M1 | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Created attachment 175538 [details]
fix
the patch changes the two attributes to be simply numbers and not serialized objects. This increases parsing performance for ObjectReferences and decreases packet size.
applied patch to HEAD |
code from HEAD consider the following evaluate response: 1971 \r\n { "command":"evaluate", "type":"response", "request_seq":12, "seq":13, "running":true, "success":true, "body":{ "evaluate":{ "handle":1, "constructorFunction":{"ref":2}, "prototypeObject":{"ref":3}, "className":"Object", "properties":[ {"ref":6,"name":"line6"}, ..<snip>.., {"ref":61,"name":"line1"}], "type":"object" } } } "constructorFunction":{"ref":2} does not need to be a serialized object, it should follow suit with other id-able items and just be "constructorFunction":2. The same change should be made for "prototypeObject":{"ref":3} -> "prototypeObject":3