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

js/modules: update docs around NewModuleInstance #4076

Merged
merged 1 commit into from
Nov 25, 2024
Merged

Conversation

mstoykov
Copy link
Contributor

What?

Update js/modules docs to be accurate

Why?

The previous comment made it seem that for each invocation of require or import it will be called for each VU. While it only gets called on the first require/import.

While this is only gets called the first time it is required for each VU that imports/require

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

The previous comment made it seem that for each invocation of `require`
or `import` it will be called for each VU. While it only gets called on
the first `require`/`import`.

While this is only gets called the first time it is required for each VU
that `imports`/`require`
@mstoykov mstoykov added the docs label Nov 25, 2024
@mstoykov mstoykov added this to the v0.56.0 milestone Nov 25, 2024
@mstoykov mstoykov requested a review from a team as a code owner November 25, 2024 15:35
@mstoykov mstoykov requested review from oleiade and olegbespalov and removed request for a team November 25, 2024 15:35
@mstoykov mstoykov merged commit ec1f601 into master Nov 25, 2024
22 of 23 checks passed
@mstoykov mstoykov deleted the modulesDocsFix branch November 25, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants