diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-05-14 17:27:34 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-05-14 17:28:31 -0400 |
commit | 362aa677b404408a341dc0ddd2e1801c9d0fc200 (patch) | |
tree | e74408d405285ca9e948acba82e09452e5b2e2f1 /main.go | |
parent | 50105d7855f69190f235ebd50e261863905ef173 (diff) |
Support relative import.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) { |