SpiderMonkey provides print / printErr to print to stdout / stderr. Node has console.log / console.error. jsc has print, the emscripten shell would like to have printErr.
Created attachment 287691 [details] patch
I'm not sure where / if to test this. I did the following locally: $ ./current/bin/jsc >>> print([1,2,3]) 1,2,3 undefined >>> printErr([3,4,5]) 3,4,5 undefined >>> ^Dundefined $ ./current/bin/jsc 1> /dev/null print("hello") printErr("hi!") hi!
Comment on attachment 287691 [details] patch r=me
Comment on attachment 287691 [details] patch Clearing flags on attachment: 287691 Committed r205328: <http://trac.webkit.org/changeset/205328>
All reviewed patches have been landed. Closing bug.
Committed r205330: <http://trac.webkit.org/changeset/205330>
(In reply to comment #6) > Committed r205330: <http://trac.webkit.org/changeset/205330> I think Keith meant this comment for https://bugs.webkit.org/show_bug.cgi?id=161471. Due to a ChangeLog mixup, he added it here.