Skip to content

Clarification of inner closures #2

@bmeck

Description

@bmeck

Inner closures like the direct eval example in the README seem to need some extra clarification. Particularly I would expect:

function foo() {
  const bar = () => this;
}

foo.thisArgumentExpected to equal true since the this comes from the foo environment record specifying that it does have a this binding per HasThisBinding and bar resolving a reference to that statically.

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