module: do not set CJS variables for Worker eval #47268
Annotations
2 errors
Test:
test/es-module/test-esm-detect-ambiguous.mjs#L55
--- stdout ---
βΆ --experimental-detect-module
βΆ string input
β permits ESM syntax in --eval input without requiring --input-type=module (171.877837ms)
::debug::starting to run --experimental-detect-module
::debug::starting to run string input
::debug::starting to run permits ESM syntax in --eval input without requiring --input-type=module
::debug::completed running permits ESM syntax in --eval input without requiring --input-type=module
β permits ESM syntax in STDIN input without requiring --input-type=module (204.083217ms)
::debug::starting to run permits ESM syntax in STDIN input without requiring --input-type=module
::debug::completed running permits ESM syntax in STDIN input without requiring --input-type=module
β should be overridden by --input-type (166.592274ms)
::debug::starting to run should be overridden by --input-type
::debug::completed running should be overridden by --input-type
β should not switch to module if code is parsable as script (124.824144ms)
AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'undefined\n'
- ''
at TestContext.<anonymous> (file:///home/runner/work/node/node/test/es-module/test-esm-detect-ambiguous.mjs:55:7)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:825:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:533:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'undefined\n',
expected: '',
operator: 'strictEqual'
}
::debug::starting to run should not switch to module if code is parsable as script
::error title=should not switch to module if code is parsable as script,file=test/es-module/test-esm-detect-ambiguous.mjs,line=55,col=7::[Error [ERR_TEST_FAILURE]: Expected values to be strictly equal:
+ actual - expected
+ 'undefined\n'
- ''] {
code: 'ERR_TEST_FAILURE',
failureType: 'testCodeFailure',
cause: AssertionError [ERR_ASSERTION]: Expected values to be strictly equal:
+ actual - expected
+ 'undefined\n'
- ''
at TestContext.<anonymous> (file:///home/runner/work/node/node/test/es-module/test-esm-detect-ambiguous.mjs:55:7)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Test.run (node:internal/test_runner/test:825:9)
at async Suite.processPendingSubtests (node:internal/test_runner/test:533:7) {
generatedMessage: true,
code: 'ERR_ASSERTION',
actual: 'undefined\n',
expected: '',
operator: 'strictEqual'
}
}
β should be overridden by --experimental-default-type (104.472328ms)
::debug::starting to run should be overridden by --experimental-default-type
::debug::completed running should be overridden by --experimental-default-type
β does not trigger detection via source code `eval()` (160.345671ms)
βΆ string input (943.565535ms)
::debug::starting to run does not trigger detection via source code `eval()`
::debug::completed running does not trigger detection via source code `eval()`
βΆ .js file input in a typeless package
β permits CommonJS syntax in a .js entry point (159.954966ms)
::debug::starting to run .js file input in a typeless package
::debug::starting to run permits CommonJS syntax in a .js entry point
::debug::completed running permits CommonJS syntax in a .js entry point
β permits ESM syntax in a .js entry point (161.676619ms)
::debug::starting to run permits ESM syntax in a .js entry point
::debug::completed running permits ESM syntax in a .js entry point
β permits CommonJS syntax in a .js file imported by a CommonJS entry point (260.828094ms)
::debug::starting to run permits CommonJS syntax in a .js file imported by a CommonJS entry point
::debug::completed running permits CommonJS syntax in a .js file imported by a CommonJS entry point
β permits ESM syntax in a .js file imported by a CommonJS entry point (167.875543ms)
::debug::starting to run permits ESM syntax in a
|
Test
Process completed with exit code 2.
|
The logs for this run have expired and are no longer available.
Loading