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

RESOLVED FIXED in mozilla29

Status

()

RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: jimb, Assigned: jimb)

Tracking

unspecified
mozilla29
Points:
---
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

5 years ago
Created attachment 8358549 [details] [diff] [review]
Implement Debugger.Script.prototype.global accessor.

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.
(Assignee)

Comment 1

5 years ago
Created attachment 8358594 [details] [diff] [review]
Implement Debugger.Script.prototype.global accessor.

Updated with a mochitest.
Assignee: nobody → jimb
Attachment #8358549 - Attachment is obsolete: true
Status: NEW → ASSIGNED
(Assignee)

Updated

5 years ago
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+
(Assignee)

Comment 4

5 years ago
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
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.