Transcrypt icon indicating copy to clipboard operation
Transcrypt copied to clipboard

`__new__` ignores all arguments

Open mad-moo opened this issue 6 months ago • 0 comments

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

mad-moo avatar Aug 25 '24 06:08 mad-moo