mozilla/kumascript — pull request #14 by nickolay (2012-05-26 02:08:25+00:00)
Title: Bug 754921: improve messages with invalid syntax

1) When JSON.parse() failed on invalid JSON (e.g. extraneous trailing
comma) in ArgumentsJSON it raised a SyntaxError with no position
information, which was displayed to the user as:

Syntax error at line , column : Unexpected token

2) Also before this change all invalid parameter syntax (such as
{{macro(1,)}} matched the ArgumentsJSON production, thus hitting the bug
(1) described above.

3) Also improved a helper in test-macros.js to help newbies (like
myself) understand the structure of the testcase fixtures.