(code: string)
| 547 | |
| 548 | // Based on https://github.com/nodejs/node/blob/92573721c7cff104ccb82b6ed3e8aa69c4b27510/lib/repl.js#L457-L461 |
| 549 | function adjustUseStrict(code: string) { |
| 550 | // "void 0" keeps the repl from returning "use strict" as the result |
| 551 | // value for statements and declarations that don't return a value. |
| 552 | return code.replace(/^"use strict";/, '"use strict"; void 0;'); |
| 553 | } |
| 554 | |
| 555 | try { |
| 556 | output = service.compile(state.input, state.path, -lines); |
no outgoing calls
no test coverage detected
searching dependent graphs…