-
Notifications
You must be signed in to change notification settings - Fork 30k
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
worker_threads: add support for data: URLs #34584
Conversation
@nodejs/modules-active-members |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor nits, but seems like a good PR
88b2792
to
1ae20f3
Compare
Rebased against master, resolved conflicts, force-pushed. PTAL |
@Trott I had originally split the PR in two commits, one for the change in the EDIT: turned out 0268ed72d894970f6a0011fd6bfa8203d42db0fe is no longer necessary thanks to e948ef3. I've removed it in my last force push. |
Works for me. Want to make the change and force-push? Sorry I squashed when perhaps I shouldn't have. Feel free to split it back into two commits, if that's what you prefer and if it's not a big hassle. |
1ae20f3
to
ad9daa7
Compare
Possibly related error in CI? Same test failed on two platforms |
Jenkins is a bit confusing to me, which test do you say is failing? From what I can see, there are two: Again, this is a bit obscure to me, but they don't look related to this PR. |
Heh, you're right, there are two separate ones. I likely ended up looking at the same results twice. Either way, we just need a quick confirmation that they are unrelated and to run them again to doublecheck. They might be flaky tests. |
CI still unfortunately flaky. Running again |
CI is green 🥳 |
PR-URL: #34584 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com>
Landed in ffa5b06 |
PR-URL: #34584 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com>
PR-URL: #34584 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com>
This PR adds support for data URLs using the same implementation provided by the ESM implementation. This covers the use case of a user wanting to use eval in a worker thread with ESM syntax.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes