Skip to content

Commit 48c7deb

Browse files
xixixaoGeoffreyBooth
authored andcommitted
Fix REPL assignment (#4559)
1 parent cd6daf0 commit 48c7deb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/coffee-script/repl.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/repl.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ replDefaults =
3333
ast = CoffeeScript.nodes tokens
3434
# Add assignment to `_` variable to force the input to be an expression.
3535
ast = new Block [
36-
new Assign (new Value new Literal '_'), ast, '='
36+
new Assign (new Value new Literal '__'), ast, '='
3737
]
3838
js = ast.compile {bare: yes, locals: Object.keys(context), referencedVars}
3939
cb null, runInContext js, context, filename

0 commit comments

Comments
 (0)