Spidermonkey has the useful behavior of printing a newline when no argument is passed: print("abc") print() print("def") yields: abc def In JavaScriptCore, the same code yields: abc undefined def This can be easily worked around by passing an empty string, but it prevents reuse of code between the two implementations.
Created attachment 21562 [details] Proposed patch
Comment on attachment 21562 [details] Proposed patch + if (args.size()) I would rather you use !args.isEmpty() here. r=me
Landed in r34428.