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

Method link

lib/internal/vm/module.js:199–210  ·  view source on GitHub ↗
(linker)

Source from the content-addressed store, hash-verified

197 }
198
199 async link(linker) {
200 validateThisInternalField(this, kWrap, 'Module');
201 validateFunction(linker, 'linker');
202 if (this.status === 'linked') {
203 throw new ERR_VM_MODULE_ALREADY_LINKED();
204 }
205 if (this.status !== 'unlinked') {
206 throw new ERR_VM_MODULE_STATUS('must be unlinked');
207 }
208 await this[kLink](linker);
209 this[kWrap].instantiate();
210 }
211
212 evaluate(options = kEmptyObject) {
213 try {

Callers 15

linkFunction · 0.45
linkSyncFunction · 0.45
[kLink]Method · 0.45
linkRequestsMethod · 0.45
linkFunction · 0.45
testBasicFunction · 0.45
test-util-types.jsFile · 0.45
createEmptyLinkedModuleFunction · 0.45
checkArgTypeFunction · 0.45
checkModuleStateFunction · 0.45

Calls 1

instantiateMethod · 0.45

Tested by 2

testFunction · 0.36
testFunction · 0.36