(code, contextifiedObject, options)
| 289 | } |
| 290 | |
| 291 | function runInContext(code, contextifiedObject, options) { |
| 292 | validateContext(contextifiedObject); |
| 293 | if (typeof options === 'string') { |
| 294 | options = { |
| 295 | filename: options, |
| 296 | [kParsingContext]: contextifiedObject, |
| 297 | }; |
| 298 | } else { |
| 299 | options = { ...options, [kParsingContext]: contextifiedObject }; |
| 300 | } |
| 301 | return createScript(code, options) |
| 302 | .runInContext(contextifiedObject, options); |
| 303 | } |
| 304 | |
| 305 | function runInNewContext(code, contextObject, options) { |
| 306 | if (typeof options === 'string') { |
no test coverage detected
searching dependent graphs…