Skip to content

Commit

Permalink
Fix REPL assignment (#4559)
Browse files Browse the repository at this point in the history
  • Loading branch information
xixixao authored and GeoffreyBooth committed Jun 7, 2017
1 parent cd6daf0 commit 48c7deb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/coffee-script/repl.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/repl.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ replDefaults =
ast = CoffeeScript.nodes tokens
# Add assignment to `_` variable to force the input to be an expression.
ast = new Block [
new Assign (new Value new Literal '_'), ast, '='
new Assign (new Value new Literal '__'), ast, '='
]
js = ast.compile {bare: yes, locals: Object.keys(context), referencedVars}
cb null, runInContext js, context, filename
Expand Down

0 comments on commit 48c7deb

Please sign in to comment.