That's the punishment for using a manually written tokenizer!
Created attachment 12921 [details] test case This test is also used for bug 12602 (with two offending cases commented out).
<rdar://problem/4980996>
Actually, the tokenizer is OK - it's just another problem with implicit arguments in these functions (and in number()).
Created attachment 13011 [details] proposed fix
Per the style guidelines, + if (argCount() == 0) should be rewritten as + if (!argCount())
Comment on attachment 13011 [details] proposed fix r=me
Committed revision 19467. (In reply to comment #5) > Per the style guidelines, Fixed here and in several other places in the file. /me stabs this guideline.