Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
Merge pull request #201 from devkat/underscore152
Browse files Browse the repository at this point in the history
Update underscore to 1.5.2, change test after _.max to -Infinity.
  • Loading branch information
joneshf committed Oct 13, 2013
2 parents c9c4ae8 + 03079ac commit b498c12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"dependencies": {
"escodegen": "0.0.22",
"source-map": "0.1.8",
"underscore": "1.2.0",
"underscore": "1.5.2",
"unicode-categories": "0.9.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ var compileNodeWithEnvToJsAST = function(n, env, opts) {
var maxTagPath = _.max(tagPaths, function(t) {
return t.path.length;
});
var maxPath = maxTagPath ? maxTagPath.path : [];
var maxPath = maxTagPath === -Infinity ? [] : maxTagPath.path;

var body = [];
if (vars) {
Expand Down

0 comments on commit b498c12

Please sign in to comment.