1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

Use check() (#111)

This commit is contained in:
ChenQuan 2018-06-04 16:03:48 +08:00 committed by Ryan Dahl
parent 8e211ea685
commit 71d789198b

View file

@ -88,9 +88,7 @@ func DispatchLoop() {
select {
case msg := <-resChan:
out, err := proto.Marshal(msg)
if err != nil {
panic(err)
}
check(err)
err = worker.SendBytes(out)
stats.v8workerSend++
stats.v8workerBytesSent += len(out)