(repl)
| 288 | } |
| 289 | |
| 290 | function isInStrictMode(repl) { |
| 291 | return repl.replMode === REPL_MODE_STRICT || ArrayPrototypeIncludes( |
| 292 | ArrayPrototypeMap(process.execArgv, |
| 293 | (e) => StringPrototypeReplaceAll( |
| 294 | StringPrototypeToLowerCase(e), |
| 295 | '_', |
| 296 | '-', |
| 297 | )), |
| 298 | '--use-strict'); |
| 299 | } |
| 300 | |
| 301 | // This returns a code preview for arbitrary input code. |
| 302 | function getInputPreview(input, callback) { |
no outgoing calls
no test coverage detected
searching dependent graphs…