Closed Bug 540665 Opened 10 years ago Closed 10 years ago

Make nsIRunnable a function so JS can use it as such

Categories

(Core :: XPCOM, enhancement)

enhancement
Not set

Tracking

()

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: Gijs, Assigned: jdm)

Details

Attachments

(1 file)

(based on seeing bug 538920)

An nsIRunnable is really nothing but a single run() method (per http://mxr.mozilla.org/mozilla-central/source/xpcom/threads/nsIRunnable.idl ).

Seems like JS should be able to get away with just having a function there, too.
Attached patch PatchSplinter Review
There seems to be precedent for this (see comment 0).  Here's a patch.
Assignee: nobody → josh
Attachment #443013 - Flags: review?(benjamin)
Attachment #443013 - Flags: review?(benjamin) → review+
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/981ef4b4e866
Status: NEW → RESOLVED
Closed: 10 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
You need to log in before you can comment on or make changes to this bug.