| 139 | } |
| 140 | |
| 141 | runInContext(contextifiedObject, options) { |
| 142 | validateContext(contextifiedObject); |
| 143 | const { breakOnSigint, args } = getRunInContextArgs( |
| 144 | contextifiedObject, |
| 145 | options, |
| 146 | ); |
| 147 | if (breakOnSigint && process.listenerCount('SIGINT') > 0) { |
| 148 | return sigintHandlersWrap(super.runInContext, this, args); |
| 149 | } |
| 150 | return ReflectApply(super.runInContext, this, args); |
| 151 | } |
| 152 | |
| 153 | runInNewContext(contextObject, options) { |
| 154 | const context = createContext(contextObject, getContextOptions(options)); |