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

fix(node): work around |this| check in deno core #1827

Merged
merged 1 commit into from
Jan 17, 2022
Merged

fix(node): work around |this| check in deno core #1827

merged 1 commit into from
Jan 17, 2022

Conversation

bnoordhuis
Copy link
Contributor

Deno's built-in timer functions throw "Illegal invocation" exceptions
unless they are called with this == globalThis or this == null.

Deno's built-in timer functions throw "Illegal invocation" exceptions
unless they are called with this == globalThis or this == null.
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

}

{
const id = timers.setTimeout(() => {});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed this change fixes this case 👍

@bnoordhuis bnoordhuis merged commit fedb88a into denoland:main Jan 17, 2022
@bnoordhuis bnoordhuis deleted the node-timers-this branch January 17, 2022 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants