1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Merge pull request #3043 from imcotton/reference-check

check existence of "path" for browser execution
This commit is contained in:
Nami-Doc 2013-06-21 10:08:49 -07:00
commit 32e8e562ea

View file

@ -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