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:
commit
32e8e562ea
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue