module: improve error message for top-level await in CommonJS #58262
Annotations
2 errors and 1 notice
Test:
test/es-module/test-esm-detect-ambiguous.mjs#L249
--- stdout ---
βΆ Module syntax detection
βΆ string input
β permits ESM syntax in --eval input without requiring --input-type=module (38.127042ms)
::debug::starting to run Module syntax detection
::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 (36.848959ms)
::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 (33.346541ms)
::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 (32.666333ms)
::debug::starting to run should not switch to module if code is parsable as script
::debug::completed running should not switch to module if code is parsable as script
β should be overridden by --experimental-default-type (33.139542ms)
::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()` (31.675125ms)
β string input (206.946291ms)
::debug::starting to run does not trigger detection via source code `eval()`
::debug::completed running does not trigger detection via source code `eval()`
::debug::completed running string input
βΆ .js file input in a typeless package
β permits CommonJS syntax in a .js entry point (36.983708ms)
::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 (39.217791ms)
::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 (38.465584ms)
::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 (35.539416ms)
::debug::starting to run permits ESM syntax in a .js file imported by a CommonJS entry point
::debug::completed running permits ESM syntax in a .js file imported by a CommonJS entry point
β permits CommonJS syntax in a .js file imported by an ESM entry point (39.744708ms)
::debug::starting to run permits CommonJS syntax in a .js file imported by an ESM entry point
::debug::completed running permits CommonJS syntax in a .js file imported by an ESM entry point
β permits ESM syntax in a .js file imported by an ESM entry point (45.728666ms)
β .js file input in a typeless package (236.512042ms)
::debug::starting to run permits ESM syntax in a .js file imported by an ESM entry point
::debug::completed running permits ESM syntax in a .js file imported by an ESM entry point
::debug::completed running .js file input in a typeless package
βΆ extensionless file input in a typeless package
β permits CommonJS syntax in an extensionless entry point (36.882875ms)
::debug::starting to run extensionless file input in a typeless package
::debug::starting to run permits CommonJS syntax in an extensionless entry point
::debug::completed running permits CommonJS syntax in an extensionless entry point
β permits ESM syntax in an extensionless entry point (36.752666ms)
::debug::starting to run permits ESM syntax in an extensionless entry point
::debug::completed running permits ESM syntax in an extensionless entry point
β permits CommonJS syntax in an extensionless file imported by a CommonJS entry point (37.2
|
Test
Process completed with exit code 2.
|
Post Set up sccache
0% - 0 hits, 0 misses, 0 errors
|
Loading