Skip to content

Node v4 not respect const scope in while block #10435

@lijunle

Description

@lijunle
  • Version: 4.7.0
  • Platform: Linux, Mac, Windows

Demo code: https://github.com/lijunle/bug-node-v4-while-const/blob/master/index.js

The build output: Travis, AppVeyor. It is causing a dead loop in the while block.

This bug only happens in v4 and not v6 or v7. I understand that, v4 is in maintain status, but I think this is a critical bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions