mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
check existence of "path" for browser execution
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user