Permalink
Browse files

* Fix error about command.js complaining about undefined sourceMap wh…

…en running -c -m.
  • Loading branch information...
1 parent 4d5a352 commit 424a877611b6c7bb934e2bdc3686f2d965129b47 @audreyt committed Apr 16, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/coffee-script/command.js
  2. +1 −1 src/command.coffee

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -290,7 +290,7 @@ writeSourceMap = (source, sourceMap, base) ->
smPath = outputPath source, base, true
smDir = path.dirname smPath
compile = ->
- sourceMap = ' ' if sourceMap.length <= 0
+ sourceMap = ' ' if !sourceMap or sourceMap.length <= 0
fs.writeFile smPath, sourceMap, (err) ->
if err
printLine err.message

0 comments on commit 424a877

Please sign in to comment.