Skip to content

Commit

Permalink
Fix scoping error in coffee-script.coffee
Browse files Browse the repository at this point in the history
Closes #4167.
  • Loading branch information
lydell committed Jan 7, 2016
1 parent b8403bf commit ae72dbb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions lib/coffee-script/coffee-script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/coffee-script.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ exports.register = -> require './register'

# Throw error with deprecation warning when depending upon implicit `require.extensions` registration
if require.extensions
for ext in @FILE_EXTENSIONS
for ext in @FILE_EXTENSIONS then do (ext) ->
require.extensions[ext] ?= ->
throw new Error """
Use CoffeeScript.register() or require the coffee-script/register module to require #{ext} files.
Expand Down

0 comments on commit ae72dbb

Please sign in to comment.