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

Function defineImportAssertionAlias

lib/internal/modules/esm/hooks.js:71–84  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

69}
70
71function defineImportAssertionAlias(context) {
72 return ObjectDefineProperty(context, 'importAssertions', {
73 __proto__: null,
74 configurable: true,
75 get() {
76 emitImportAssertionWarning();
77 return this.importAttributes;
78 },
79 set(value) {
80 emitImportAssertionWarning();
81 return ReflectSet(this, 'importAttributes', value);
82 },
83 });
84}
85
86/**
87 * @typedef {object} ExportedHooks

Callers 2

resolveMethod · 0.85
loadMethod · 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…