(code, contextObject, options)
| 303 | } |
| 304 | |
| 305 | function runInNewContext(code, contextObject, options) { |
| 306 | if (typeof options === 'string') { |
| 307 | options = { filename: options }; |
| 308 | } |
| 309 | contextObject = createContext(contextObject, getContextOptions(options)); |
| 310 | options = { ...options, [kParsingContext]: contextObject }; |
| 311 | return createScript(code, options).runInNewContext(contextObject, options); |
| 312 | } |
| 313 | |
| 314 | function runInThisContext(code, options) { |
| 315 | if (typeof options === 'string') { |
no test coverage detected
searching dependent graphs…