[v12.x backport] module: improve support of data: URLs#37859
Merged
richardlau merged 2 commits intonodejs:v12.x-stagingfrom Mar 29, 2021
Merged
[v12.x backport] module: improve support of data: URLs#37859richardlau merged 2 commits intonodejs:v12.x-stagingfrom
richardlau merged 2 commits intonodejs:v12.x-stagingfrom
Conversation
Collaborator
Member
|
cc @nodejs/lts Any concerns with adding URI handling functions to primordials in 12.x? |
Collaborator
richardlau
approved these changes
Mar 29, 2021
PR-URL: nodejs#37394 Backport-PR-URL: nodejs#37859 Reviewed-By: Zijian Liu <lxxyxzj@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Add support for loading modules using percent-encoded URLs. PR-URL: nodejs#37392 Backport-PR-URL: nodejs#37859 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Bradley Farias <bradley.meck@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
3f6e97e to
7b0ed4b
Compare
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #37392.
I've also included #37394 which simply adds
decodeURIComponentto primordials, but we could also leave it out and use it from the global object.