Closed Bug 958646 Opened 10 years ago Closed 10 years ago

[jsdbg2] Implement Debugger.Script.prototype.global accessor, to return the global of a script

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla29

People

(Reporter: jimb, Assigned: jimb)

Details

Attachments

(1 file, 1 obsolete file)

There should be a quick way to get the global in which a given script runs. This would also provide a quick way to find a frame's global: frame.script.global.

Patch attached.
Updated with a mochitest.
Assignee: nobody → jimb
Attachment #8358549 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #8358594 - Flags: review?(sphink)
Comment on attachment 8358594 [details] [diff] [review]
Implement Debugger.Script.prototype.global accessor.

Review of attachment 8358594 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me.
Attachment #8358594 - Flags: review?(sphink) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/35cba8ed009d
Flags: in-testsuite+
Target Milestone: --- → mozilla29
https://hg.mozilla.org/mozilla-central/rev/35cba8ed009d
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: