Skip to content

Conversation

bartlomieju
Copy link
Member

Closes #4591

This PR fixes false positive errors in asyncOpsSanitizer - due to how timers work, after clearing timeout or interval there will still be 1 not completed op; adding 0s timeout before asserting ops fixes this problem as it allows another turn of event loop which in turn allows timer promise to resolve.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM - but see comment

@bartlomieju bartlomieju merged commit 3f489ae into denoland:master Apr 3, 2020
@bartlomieju bartlomieju deleted the resource_sanitizer branch April 3, 2020 17:20
KSXGitHub pushed a commit to KSXGitHub/deno that referenced this pull request Apr 4, 2020
Fixes denoland#4602

We turned off `allowJs` by default, to keep the compiler from grabbing
a bunch of files that it wouldn't actually do anything useful with.  On
the other hand, this caused problems with bundles, where the compiler
needs to gather all the dependencies, including JavaScript ones.  This
fixes this so that when we are bundling, we analyse JavaScript imports
in the compiler.
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.

Test case is leaking async ops. When using setInterval inside promise
2 participants