8000 Module fails when used in Node 4 · Issue #1 · cchamberlain/license-loader · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Module fails when used in Node 4 #1
Open
@mitchellmebane

Description

@mitchellmebane

The usage of let in index.js line 55 triggers the following error when I use this module in Node 4 LTS:

Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

Adding a 'use strict'; at the start of the main export fixes it. In this case, it should also be valid to just change the let to var.

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

      0