Closed Bug 804404 Opened 13 years ago Closed 13 years ago

(xpcshell?) myFunction.toString() (as in Function.toString) returns "[sourceless code]" as the function body when loading scripts via Cu.utils.import/subscriptloader

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla19
Tracking Status
firefox18 --- fixed
firefox19 --- fixed

People

(Reporter: jlal, Assigned: Benjamin)

Details

Attachments

(2 files)

This is a regression from sometime between Aug 7th mozilla central xpcshell and now. The rational behind the use of Function.toString is to send javascript function bodies over marionette for gaia integration tests. Web content appears to work as expected.
This simply moves the source hook code to XPConnect (no behavior change), so it gets used by xpcshell.
Assignee: general → benjamin
Attachment #674294 - Flags: review?(bzbarsky)
Comment on attachment 674294 [details] [diff] [review] set source hook in xpc r=me
Attachment #674294 - Flags: review?(bzbarsky) → review+
Comment on attachment 674294 [details] [diff] [review] set source hook in xpc [Approval Request Comment] Low risk patch, which just moves code around. Wanted for b2g.
Attachment #674294 - Flags: approval-mozilla-aurora?
Status: NEW → RESOLVED
Closed: 13 years ago
Flags: in-testsuite?
Resolution: --- → FIXED
Target Milestone: --- → mozilla19
Comment on attachment 674294 [details] [diff] [review] set source hook in xpc Approving as it is a low risk patch , needed for b2g
Attachment #674294 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: