Skip to content

Functions in default parameters should have separate scope #2584

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
function f()
    return (function(a= () => typeof b === "undefined") {
      var b = 1;
      return a();
    }());
}

console.log()

Expected: true
Actual: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    ES6Relates to the ES6 SpecWon't FixThe severity and priority of this issue do not warrant the time or complexity needed to fix it

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions