Skip to content

Commit

Permalink
Merge pull request jashkenas#3043 from imcotton/reference-check
Browse files Browse the repository at this point in the history
check existence of "path" for browser execution
  • Loading branch information
vendethiel committed Jun 21, 2013
2 parents b68fd9d + 7fdac5c commit 32e8e56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coffee-script.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ sourceMaps = {}
# Generates the source map for a coffee file and stores it in the local cache variable.
getSourceMap = (filename) ->
return sourceMaps[filename] if sourceMaps[filename]
return unless path.extname(filename) in extensions
return unless path?.extname(filename) in extensions
answer = compileFile filename, true
sourceMaps[filename] = answer.sourceMap

Expand Down

0 comments on commit 32e8e56

Please sign in to comment.