From 362aa677b404408a341dc0ddd2e1801c9d0fc200 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 14 May 2018 17:27:34 -0400 Subject: Support relative import. --- main.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index e634a6abe..6e38d5f95 100644 --- a/main.go +++ b/main.go @@ -31,9 +31,13 @@ func recv(buf []byte) []byte { switch msg.Kind { case Msg_READ_FILE_SYNC: return ReadFileSync(msg.Path) + case Msg_EXIT: + os.Exit(int(msg.Code)) default: panic("Unexpected message") } + + return nil } func loadAsset(w *v8worker2.Worker, path string) { -- cgit v1.2.3