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

tc39: enable async tests #2396

Merged
merged 2 commits into from
Feb 28, 2022
Merged

tc39: enable async tests #2396

merged 2 commits into from
Feb 28, 2022

Conversation

mstoykov
Copy link
Contributor

Most of the new failing tests are around classes extending Promises and
that not working with the current babel correctly

Most of the new failing tests are around classes extending Promises and
that not working with the current babel correctly
@mstoykov
Copy link
Contributor Author

This was done in the goja repo when Promises were added but I for some reason didn't port this at the time 🤦

@@ -302,6 +305,20 @@ func (ctx *tc39TestCtx) runTC39Test(t testing.TB, name, src string, meta *tc39Me
if strict {
src = "'use strict';\n" + src
}

var out []string
async := meta.hasFlag("async") //nolint:ifshort // false positive
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is like the second time this linter has had a false positive, and it seems kind of not developed at this point (maybe just vacation for the maintainer).

I also don't remember it having a good case. And arguably in most cases this doesn't make things better IMO.

@mstoykov mstoykov merged commit ef1bf49 into master Feb 28, 2022
@mstoykov mstoykov deleted the tc39TestsForEventLoops branch February 28, 2022 16:21
@mstoykov mstoykov added this to the v0.37.0 milestone Mar 2, 2022
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.

3 participants