Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use a different variable name for lodash in readme example #23

Merged
merged 1 commit into from Sep 4, 2016

Conversation

zeke
Copy link
Contributor

@zeke zeke commented Sep 3, 2016

Using _ doesn't work on newer versions of node. See nodejs/node#5431

❯ node -v   
v6.4.0

~/Desktop master*
❯ trymodule lodash=_
Gonna start a REPL with packages installed and loaded for you
'lodash' was already installed since before!
Package 'lodash' was loaded and assigned to '_' in the current scope
REPL started...
> Expression assignment to _ now disabled.

@shockey shockey merged commit f8e49f5 into victorb:master Sep 4, 2016
@shockey
Copy link
Collaborator

shockey commented Sep 4, 2016

Thanks @zeke! Good catch 😄

(cc: #22)

@chocolateboy
Copy link

FYI, it still works:

$ node -v
v6.4.0

# ...

REPL started...
> Expression assignment to _ now disabled.
> _.each
[Function: forEach]

The wording is misleading. It doesn't mean "Node.js no longer allows _ to be assigned to in the REPL" (i.e. _ is read-only). It means "Expressions entered in the REPL in this session will no longer be assigned to _" (i.e. it's yours now, so don't expect it to contain the result of the last expression you entered).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants