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

Support V8 flags

This commit is contained in:
Ryan Dahl 2018-05-14 20:57:49 -04:00
parent 76379d7058
commit 471a4f461a

View file

@ -52,6 +52,7 @@ func loadAsset(w *v8worker2.Worker, path string) {
}
func main() {
args := v8worker2.SetFlags(os.Args)
worker := v8worker2.New(recv)
loadAsset(worker, "dist/main.js")
cwd, err := os.Getwd()
@ -61,7 +62,7 @@ func main() {
out, err := proto.Marshal(&Msg{
Kind: Msg_START,
Cwd: cwd,
Argv: os.Args,
Argv: args,
})
if err != nil {
panic(err)