MCPcopy Index your code
hub / github.com/nodejs/node / emitImportAssertionWarning

Function emitImportAssertionWarning

lib/internal/modules/esm/hooks.js:64–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62let importAssertionAlreadyWarned = false;
63
64function emitImportAssertionWarning() {
65 if (!importAssertionAlreadyWarned) {
66 importAssertionAlreadyWarned = true;
67 process.emitWarning('Use `importAttributes` instead of `importAssertions`', 'ExperimentalWarning');
68 }
69}
70
71function defineImportAssertionAlias(context) {
72 return ObjectDefineProperty(context, 'importAssertions', {

Callers 4

defaultLoadFunction · 0.85
getFunction · 0.85
setFunction · 0.85
resolveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…