Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/nodejs/node
/ test-require-module-tla-retry-import-2.js
File
test-require-module-tla-retry-import-2.js
test/es-module/test-require-module-tla-retry-import-2.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
// This tests that after loading a ESM with import() and then retrying
2
// with require(), it errors as expected, and produces consistent results.
3
'use strict'
;
4
const
common = require(
'../common'
);
Callers
nothing calls this directly
Calls
3
test
Function · 0.70
require
Function · 0.50
then
Method · 0.45
Tested by
no test coverage detected