8000 lexically-scoped function declarations in module goal · Issue #714 · acornjs/acorn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
lexically-scoped function declarations in module goal #714
Closed
@jdalton

Description

@jdalton

Function declarations are interpreted as lexically-scoped in module code

test cases:
https://github.com/tc39/test262/blob/master/test/language/module-code/parse-err-hoist-lex-fun.js
and
https://github.com/tc39/test262/blob/master/test/language/module-code/parse-err-hoist-lex-gen.js

Currently acorn will allow each test case to parse as a module and not throw the expected syntax error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0