(path)
| 1 | class RpcWorker { |
| 2 | constructor(path) { |
| 3 | this.next_command_id = 0; |
| 4 | this.in_flight_commands = new Map(); |
| 5 | this.worker = new Worker(path); |
| 6 | this.worker.onmessage = this.onMessageHandler.bind(this); |
| 7 | } |
| 8 | // THIS LINE SHOULD NOT APPEAR IN PRINT |
| 9 | onMessageHandler(msg) { |
| 10 | const { result, error, id } = msg.data; |
nothing calls this directly
no outgoing calls
no test coverage detected