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:
parent
76379d7058
commit
471a4f461a
1 changed files with 2 additions and 1 deletions
3
main.go
3
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue