Skip to content

Commit 32e8e56

Browse files
committed
Merge pull request #3043 from imcotton/reference-check
check existence of "path" for browser execution
2 parents b68fd9d + 7fdac5c commit 32e8e56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coffee-script.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ sourceMaps = {}
294294
# Generates the source map for a coffee file and stores it in the local cache variable.
295295
getSourceMap = (filename) ->
296296
return sourceMaps[filename] if sourceMaps[filename]
297-
return unless path.extname(filename) in extensions
297+
return unless path?.extname(filename) in extensions
298298
answer = compileFile filename, true
299299
sourceMaps[filename] = answer.sourceMap
300300

0 commit comments

Comments
 (0)