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

chore: properly handle linking and evaluating modules #9958

Closed
wants to merge 1 commit into from

Conversation

SimenB
Copy link
Member

@SimenB SimenB commented May 3, 2020

Summary

Based on nodejs/node#33216 (comment)

Test plan

Tests should still pass

if (module.status === 'linked') {
const {result} = await module.evaluate();

// last statement in file might be a promise - await it if so
Copy link
Member Author

Choose a reason for hiding this comment

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

not sure if we should do this or not

@SimenB
Copy link
Member Author

SimenB commented May 3, 2020

Hmm, broke. I might need to refactor some more as I had this working at some point. Probably broke it ripping out debug code when opening this PR

@SimenB
Copy link
Member Author

SimenB commented Feb 23, 2022

A version of this landed in #11150

@SimenB SimenB closed this Feb 23, 2022
@SimenB SimenB deleted the esm-linking-fixes branch February 23, 2022 10:51
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 26, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants