Skip to content

__new__ ignores all arguments #880

@mad-moo

Description

@mad-moo

When constructing JavaScript objects using __new__ the arguments aren't passed on to JS. For example,

new_date = __new__(Date, (2024, 8, 25))

compiles to

// [boilerplate]
export var new_date = new Date;

Used command: transcrypt test.py --nomin
Transcrypt version: 3.9.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions