Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__new__ ignores all arguments #880

Open
mad-moo opened this issue Aug 25, 2024 · 0 comments
Open

__new__ ignores all arguments #880

mad-moo opened this issue Aug 25, 2024 · 0 comments
Labels

Comments

@mad-moo
Copy link

mad-moo commented Aug 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants