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

Function createEmptyLinkedModule

test/parallel/test-vm-module-errors.js:11–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9const { SourceTextModule, createContext, Module } = require('vm');
10
11async function createEmptyLinkedModule() {
12 const m = new SourceTextModule('');
13 await m.link(common.mustNotCall());
14 return m;
15}
16
17async function checkArgType() {
18 assert.throws(() => {

Callers 1

checkModuleStateFunction · 0.85

Calls 1

linkMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…