Skip to content

[P2] Both engines: mapped arguments lack their callee data property #3588

Closed

Description

@nickna

Both engines omit the ordinary callee data property on sloppy arguments objects with a simple parameter list.

function mapped(value) {
    const descriptor = Object.getOwnPropertyDescriptor(arguments, "callee");
    console.log(arguments.callee === mapped, descriptor === undefined ? "missing" : descriptor.writable);
}
mapped(1);

Node 22.23.2 prints true true. The SharpTS interpreter and verified standalone compilation from the post-#3552 baseline print false missing. The property should contain the invoked function and be writable, non-enumerable, and configurable. This issue concerns mapped arguments and is separate from #3586's throwing accessor on unmapped arguments.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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