这是indexloc提供的服务,不要输入任何密码
Skip to content

Losing reference to module when using lodash=_ #22

@shockey

Description

@shockey

trymodule@1.4.0 on node 4.2.1.

→ 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...
> _.each
[Function: forEach]
> _.each
undefined
> _
undefined
> 

It may have something to do with using _ as the local variable.

Can someone try to reproduce this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions