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

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