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

Function isContext

lib/vm.js:79–83  ·  view source on GitHub ↗

* Check if object is a context object created by vm.createContext(). * @throws {TypeError} If object is not an object in the first place, throws TypeError. * @param {object} object Object to check. * @returns {boolean}

(object)

Source from the content-addressed store, hash-verified

77 * @returns {boolean}
78 */
79function isContext(object) {
80 validateObject(object, 'object', kValidateObjectAllowArray);
81
82 return _isContext(object);
83}
84
85class Script extends ContextifyScript {
86 constructor(code, options = kEmptyObject) {

Callers 3

validateContextFunction · 0.70
createContextFunction · 0.70
compileFunctionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…