Skip to content

Commit

Permalink
Use function expression instead of declaration for rethrow
Browse files Browse the repository at this point in the history
  • Loading branch information
mde committed Jan 12, 2015
1 parent 7d38b57 commit 9f47977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ includeSource = function (path, options) {
return templ.source;
};

function rethrow(err, str, filename, lineno){
rethrow = function (err, str, filename, lineno){
var lines = str.split('\n')
, start = Math.max(lineno - 3, 0)
, end = Math.min(lines.length, lineno + 3);
Expand Down

0 comments on commit 9f47977

Please sign in to comment.