From 08dcc7e107ef5988c06870e7439a49dc1071a738 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Sun, 21 Feb 2010 11:22:49 -0500 Subject: [PATCH] removing commented-out parseerror --- lib/coffee-script.js | 3 --- src/coffee-script.coffee | 4 ---- 2 files changed, 7 deletions(-) diff --git a/lib/coffee-script.js b/lib/coffee-script.js index 0637570d..5d4ad07e 100644 --- a/lib/coffee-script.js +++ b/lib/coffee-script.js @@ -32,9 +32,6 @@ return this.pos; } }; - // Improved error messages. - // 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) { diff --git a/src/coffee-script.coffee b/src/coffee-script.coffee index 51be3dc3..6b42be31 100644 --- a/src/coffee-script.coffee +++ b/src/coffee-script.coffee @@ -24,10 +24,6 @@ parser.lexer: { showPosition: -> @pos } -# Improved error messages. -# 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.