mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-17 19:11:22 -05:00
the improved error messages are still-to-be-improved
This commit is contained in:
@@ -33,9 +33,8 @@
|
||||
}
|
||||
};
|
||||
// Improved error messages.
|
||||
parser.parseError = function parseError(message, hash) {
|
||||
throw new Error('Unexpected ' + hash.token + ' on line ' + hash.line);
|
||||
};
|
||||
// parser.parseError: (message, hash) ->
|
||||
// throw new Error 'Unexpected ' + parser.terminals_[hash.token] + ' on line ' + hash.line
|
||||
exports.VERSION = '0.5.0';
|
||||
// Compile CoffeeScript to JavaScript, using the Coffee/Jison compiler.
|
||||
exports.compile = function compile(code, options) {
|
||||
|
||||
Reference in New Issue
Block a user