Permalink
Browse files

improved runtime.Gosched

  • Loading branch information...
1 parent 5c8f217 commit a963318d1a43cd7a628b8cfabbc596403becbe17 @neelance neelance committed Feb 5, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 compiler/natives/src/runtime/runtime.go
@@ -79,7 +79,7 @@ func GOMAXPROCS(n int) int {
func Gosched() {
c := make(chan struct{})
- js.Global.Call("setTimeout", func() { close(c) }, 0)
+ js.Global.Call("$setTimeout", js.InternalObject(func() { close(c) }), 0)
<-c
}

0 comments on commit a963318

Please sign in to comment.