Skip to content

Conversation

@bmeck
Copy link
Member

@bmeckbmeck commented Feb 23, 2018

ensures that instantiation result is only used during initial loading. current loading mechanism would use the empty promise sentinel if the import() fired in a cyclic manner.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

module

@bmeckbmeck requested review from devsnek and hybristFebruary 23, 2018 21:14
@bmeckbmeckforce-pushed the fix-cyclic-dynamic-import branch from b6a542f to a3f7f9aCompareFebruary 23, 2018 21:26
@mscdex
Copy link
Contributor

Typo in commit message

@bmeckbmeckforce-pushed the fix-cyclic-dynamic-import branch from 483e758 to 881ae75CompareFebruary 23, 2018 21:41
ensures that instantiation result is only used during initial loading
@mscdexmscdex changed the title module: fix cylcical dynamic importmodule: fix cyclical dynamic importFeb 23, 2018
Copy link
Contributor

@Fishrock123Fishrock123 left a comment

Choose a reason for hiding this comment

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

@TimothyGuTimothyGu added the esm Issues and PRs related to the ECMAScript Modules implementation. label Feb 27, 2018
@BridgeARBridgeAR added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Mar 1, 2018
@bmeck
Copy link
MemberAuthor

bmeck commented Mar 5, 2018

Landed in 023f49c

bmeck added a commit that referenced this pull request Mar 5, 2018
ensures that instantiation result is only used during initial loading PR-URL: #18965 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Jan Krems <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
MylesBorins pushed a commit that referenced this pull request Mar 6, 2018
ensures that instantiation result is only used during initial loading PR-URL: #18965 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Jan Krems <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Mar 6, 2018
MylesBorins pushed a commit that referenced this pull request Mar 6, 2018
ensures that instantiation result is only used during initial loading PR-URL: #18965 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Jan Krems <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
MylesBorins pushed a commit that referenced this pull request Mar 6, 2018
ensures that instantiation result is only used during initial loading PR-URL: #18965 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Jan Krems <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
MylesBorins pushed a commit that referenced this pull request Mar 6, 2018
ensures that instantiation result is only used during initial loading PR-URL: #18965 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Jan Krems <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
MylesBorins pushed a commit that referenced this pull request Mar 7, 2018
ensures that instantiation result is only used during initial loading PR-URL: #18965 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Jan Krems <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
MayaLekova pushed a commit to MayaLekova/node that referenced this pull request May 8, 2018
ensures that instantiation result is only used during initial loading PR-URL: nodejs#18965 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Guy Bedford <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Jan Krems <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
@jasnell
Copy link
Member

Should this be backported to 8.x?

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.esmIssues and PRs related to the ECMAScript Modules implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

11 participants

@bmeck@mscdex@jasnell@hybrist@guybedford@Fishrock123@cjihrig@devsnek@BridgeAR@TimothyGu@joyeecheung