We need this stuff in the dom bindings, but it seems silly to convert our JSID to a char* just to take advantage of this. Patch coming right up.
Created attachment 610601 [details] [diff] [review] patch. v1 Attaching a patch. Flagging luke for review.
Pushed this to try: https://tbpl.mozilla.org/?tree=Try&rev=7a2dbe5f12e4
Looks like the try oranges were the result of the patch underneath, which was backed out on inbound. Pushed to m-i: http://hg.mozilla.org/integration/mozilla-inbound/rev/5ed5a3e3acc4