TranscryptOrg / Transcrypt

Python 3.9 to JavaScript compiler - Lean, fast, open!
https://www.transcrypt.org
Apache License 2.0
2.86k stars 215 forks source link

`__new__` ignores all arguments #880

Open mad-moo opened 3 months ago

mad-moo commented 3 months ago

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