From 7fdac5c3b92f601034124eecc040b873de51c2ad Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Sat, 22 Jun 2013 00:58:30 +0800 Subject: [PATCH] check existence of "path" for browser execution --- src/coffee-script.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coffee-script.coffee b/src/coffee-script.coffee index b6c1e07741..6706a19f3a 100644 --- a/src/coffee-script.coffee +++ b/src/coffee-script.coffee @@ -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