* 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)
| 77 | * @returns {boolean} |
| 78 | */ |
| 79 | function isContext(object) { |
| 80 | validateObject(object, 'object', kValidateObjectAllowArray); |
| 81 | |
| 82 | return _isContext(object); |
| 83 | } |
| 84 | |
| 85 | class Script extends ContextifyScript { |
| 86 | constructor(code, options = kEmptyObject) { |
no outgoing calls
no test coverage detected
searching dependent graphs…