Skip to content

Conversation

@atlowChemi
Copy link
Member

Fixes: #47231

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test Issues and PRs related to the tests. labels Mar 23, 2023
@MoLow MoLow added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 24, 2023
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 24, 2023
@cjihrig
Copy link
Contributor

cjihrig commented Mar 24, 2023

Isn't this going to reintroduce the same problem as #46061 (comment)

@ljharb
Copy link
Member

ljharb commented Mar 24, 2023

@cjihrig so would the addition of any core modules; see #46061 (comment) and #46061 (comment)

Copy link
Member

@benjamingr benjamingr left a comment

Choose a reason for hiding this comment

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

Code lgtm. All anonrig's suggestions look good to me too.

@MoLow
Copy link
Member

MoLow commented Mar 25, 2023

Isn't this going to reintroduce the same problem as #46061 (comment)

yeah but as @ljharb mentioned this is desired and will require fixing is-core-module

let spec;
let tap;

ObjectDefineProperties(module.exports, {
Copy link
Member

Choose a reason for hiding this comment

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

are we sure that cjs-module-lexer will be able to pick up this pattern as named exports?

Copy link
Member

Choose a reason for hiding this comment

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

it is a pretty common pattern in node's built-in modules, so it probably does:

ObjectDefineProperties(module.exports, {

ObjectDefineProperties(module.exports, {

node/lib/dns.js

Line 345 in 9dbb162

ObjectDefineProperties(module.exports, {

node/lib/os.js

Line 399 in 9dbb162

ObjectDefineProperties(module.exports, {

ObjectDefineProperties(module.exports, {

Copy link
Contributor

Choose a reason for hiding this comment

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

It probably doesn’t but we don’t use cjs-module-lexer for core modules, because core modules are not CJS (or at least, not regular CJS) and the use of named imports for core modules predates the introduction of cjs-module-lexer.

@MoLow MoLow added the request-ci Add this label to start a Jenkins CI on a PR. label Mar 26, 2023
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Mar 26, 2023
@nodejs-github-bot
Copy link
Collaborator

@nodejs-github-bot
Copy link
Collaborator

@MoLow MoLow added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Mar 26, 2023
@MoLow MoLow added the test_runner Issues and PRs related to the test runner subsystem. label Mar 26, 2023
@nodejs-github-bot
Copy link
Collaborator

Landed in 29d7aec

@RafaelGSS RafaelGSS added the semver-minor PRs that contain new features and should be released in the next minor version. label Apr 10, 2023
@atlowChemi atlowChemi deleted the expose-test-stream-reportes branch April 13, 2023 20:48
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. needs-ci PRs that need a full CI run. semver-minor PRs that contain new features and should be released in the next minor version. test_runner Issues and PRs related to the test runner subsystem. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test runner run function crashing

9 participants