From c963c30107def765fac91c08e1e4ea22159fcda3 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Mon, 3 Nov 2014 17:50:25 +1100 Subject: [PATCH] fix errorWithNode line mapping --- lib/6to5/file.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/6to5/file.js b/lib/6to5/file.js index de9a22aacf..eec4ec6044 100644 --- a/lib/6to5/file.js +++ b/lib/6to5/file.js @@ -90,8 +90,7 @@ File.prototype.errorWithNode = function (node, msg) { } var err = new SyntaxError("Line " + loc.line + ": " + msg); - err.lineNumber = loc.line; - err.column = loc.column; + err.loc = loc; return err; };