From 5695aaa2bc28abc699a6edeb79e5b014491a3142 Mon Sep 17 00:00:00 2001 From: DanyaPostfactum Date: Fri, 21 Mar 2014 10:02:52 +1000 Subject: [PATCH] Pass error code to error handler. --- lib/TreeBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/TreeBuilder.js b/lib/TreeBuilder.js index 346750cd..3dae779c 100644 --- a/lib/TreeBuilder.js +++ b/lib/TreeBuilder.js @@ -2960,7 +2960,7 @@ TreeBuilder.prototype.parseError = function(code, args) { if (!this.errorHandler) return; var message = formatMessage(messages[code], args); - this.errorHandler.error(message, this.tokenizer._inputStream.location()); + this.errorHandler.error(message, this.tokenizer._inputStream.location(), code); }; /**