Open Bug 2046631 Opened 5 months ago Updated 1 month ago

Replace callee in Debugger.onNativeCall with wrapper object

Categories

(Core :: JavaScript: Debugger API, task, P3)

task

Tracking

()

People

(Reporter: bthrall, Assigned: bthrall)

References

(Blocks 2 open bugs)

Details

Attachments

(1 external file)

DevTools does not require all the functionality that Debugger.onNativeCall provides and we can make the callback easier to use by wrapping the callee parameter with a custom object that provides the necessary features.

The necessary features come from how DevTools uses onNativeCall. We want to minimize changes to the DevTools code while still keeping the same functionality in that callback. It looks like the object will need: isSideEffectFree (set by DevTools here), name, isNativeGetterWithJitInfo, isSameNativeWithJitInfo, and access to the bound target function if bound.

  • Update onNativeCall documentation
  • Implement a custom object wrapper for the callee parameter
  • Update tests
Assignee: nobody → bthrall
Severity: -- → N/A
Priority: -- → P3
Blocks: 2068353
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: