Files
scriptc/tests
Chris Tate 8ea6b21f56 Reject import() of specifiers nothing resolves with Node's ERR_MODULE_NOT_FOUND
A literal import() whose specifier resolves to no module lowered to a
deferred SC2012 refusal. It now rejects when the call runs, as Node does:
a package nothing installed provides rejects with "Cannot find package",
and a relative or absolute path to a file that does not exist rejects with
"Cannot find module" and the file's URL as the error's url property.
Builtins and URL specifiers keep their current lowering.

error.nodeThrow takes an optional fourth argument for the url, which the
runtime sets through scr_throw_node_coded_url.
2026-10-29 10:28:08 -05:00
..
…