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

Function validateContext

lib/vm.js:159–164  ·  view source on GitHub ↗
(contextifiedObject)

Source from the content-addressed store, hash-verified

157}
158
159function validateContext(contextifiedObject) {
160 if (!isContext(contextifiedObject)) {
161 throw new ERR_INVALID_ARG_TYPE('contextifiedObject', 'vm.Context',
162 contextifiedObject);
163 }
164}
165
166function getRunInContextArgs(contextifiedObject, options = kEmptyObject) {
167 validateObject(options, 'options');

Callers 2

runInContextMethod · 0.85
runInContextFunction · 0.85

Calls 1

isContextFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…