FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

worker_threads: add support for data: URLs by aduh95 · Pull Request #34584 · nodejs/node · GitHub

/ node Public

worker_threads: add support for data: URLs - #34584

Closed
aduh95 wants to merge 2 commits into
nodejs:masterfrom
aduh95:worker-data-url-support
Closed

worker_threads: add support for data: URLs#34584
aduh95 wants to merge 2 commits into
nodejs:masterfrom
aduh95:worker-data-url-support

Conversation

aduh95 commented Jul 31, 2020

Copy link
Copy Markdown
Contributor

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), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

nodejs-github-bot added the lib / src Issues and PRs related to general changes in the lib or src directory. label Jul 31, 2020
jasnell added whatwg-url Issues and PRs related to the WHATWG URL implementation. worker Issues and PRs related to Worker support. labels Jul 31, 2020
jasnell requested a review from addaleax July 31, 2020 21:55

addaleax commented Aug 1, 2020

Copy link
Copy Markdown
Member

@nodejs/modules-active-members

addaleax added the esm Issues and PRs related to the ECMAScript Modules implementation. label Aug 1, 2020
Comment thread doc/api/worker_threads.md Outdated

bmeck left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

minor nits, but seems like a good PR

Comment thread lib/internal/worker.js Outdated
Comment thread lib/internal/worker.js Outdated
Trott force-pushed the worker-data-url-support branch from 88b2792 to 1ae20f3 Compare August 11, 2020 00:30

Trott commented Aug 11, 2020

Copy link
Copy Markdown
Member

Rebased against master, resolved conflicts, force-pushed. PTAL

Trott added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 11, 2020
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 11, 2020

Copy link
Copy Markdown
Collaborator

aduh95 commented Aug 11, 2020
edited
Loading

Copy link
Copy Markdown
Contributor Author

@Trott I had originally split the PR in two commits, one for the change in the evalModule signature (0268ed72d894970f6a0011fd6bfa8203d42db0fe), one to actually add support for the data: URLs (28eedafd6a78d95f9860c78aa4f77e191a026e99). If we want to squash into one commit, I think the commit message should be taken from the latter rather than the former. What are your thoughts?

EDIT: turned out 0268ed72d894970f6a0011fd6bfa8203d42db0fe is no longer necessary thanks to e948ef3. I've removed it in my last force push.

Trott commented Aug 12, 2020

Copy link
Copy Markdown
Member

@Trott I had originally split the PR in two commits, one for the change in the evalModule signature (0268ed7), one to actually add support for the data: URLs (28eedaf). If we want to squash into one commit, I think the commit message should be taken from the latter rather than the former. What are your thoughts?

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.

Comment thread lib/internal/process/execution.js Outdated
addaleax added author ready PRs that have at least one approval, no outstanding review comments, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Aug 17, 2020
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 17, 2020

Copy link
Copy Markdown
Collaborator

jasnell commented Aug 17, 2020

Copy link
Copy Markdown
Member

Possibly related error in CI? Same test failed on two platforms

aduh95 commented Aug 17, 2020

Copy link
Copy Markdown
Contributor Author

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.

jasnell commented Aug 17, 2020

Copy link
Copy Markdown
Member

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.

Copy link
Copy Markdown
Collaborator

jasnell commented Aug 19, 2020

Copy link
Copy Markdown
Member

CI still unfortunately flaky. Running again

aduh95 commented Aug 19, 2020

Copy link
Copy Markdown
Contributor Author

jasnell pushed a commit that referenced this pull request Aug 19, 2020
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>

jasnell commented Aug 19, 2020

Copy link
Copy Markdown
Member

Landed in ffa5b06

jasnell closed this Aug 19, 2020
BethGriggs pushed a commit that referenced this pull request Aug 20, 2020
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>
danielleadams mentioned this pull request Aug 20, 2020
BethGriggs pushed a commit that referenced this pull request Aug 20, 2020
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>
addaleax added semver-minor PRs that contain new features and should be released in the next minor version. backport-blocked-v12.x labels Sep 21, 2020
aduh95 deleted the worker-data-url-support branch November 27, 2020 18:40
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. esm Issues and PRs related to the ECMAScript Modules implementation. lib / src Issues and PRs related to general changes in the lib or src directory. semver-minor PRs that contain new features and should be released in the next minor version. whatwg-url Issues and PRs related to the WHATWG URL implementation. worker Issues and PRs related to Worker support.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL