Skip to content

test: split indirect eval import tests#58637

Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom
legendecas:vm-test-eval
Jun 11, 2025
Merged

test: split indirect eval import tests#58637
nodejs-github-bot merged 1 commit intonodejs:mainfrom
legendecas:vm-test-eval

Conversation

@legendecas
Copy link
Member

@legendecas legendecas commented Jun 8, 2025

Split indirect eval import tests as they depend on the JS stack to
resolve the referrer.

These tests can be wonky if the loader internals are changed and performs
microtasks with a JS stack (e.g. with CallbackScope). In this case, the
referrer will be resolved to the top JS stack frame node:internal/process/task_queues.js.
This is due to the implementation detail of how V8 finds the referrer for a dynamic import
call.

Loading
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 pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. esm Issues and PRs related to the ECMAScript Modules implementation. needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. vm Issues and PRs related to the vm subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants