• Richard Musiol's avatar
    all: add support for synchronous callbacks to js/wasm · 6dd70fc5
    Richard Musiol authored
    With this change, callbacks returned by syscall/js.NewCallback
    get executed synchronously. This is necessary for the APIs of
    many JavaScript libraries.
    
    A callback triggered during a call from Go to JavaScript gets executed
    on the same goroutine. A callback triggered by JavaScript's event loop
    gets executed on an extra goroutine.
    
    Fixes #26045
    Fixes #27441
    
    Change-Id: I591b9e85ab851cef0c746c18eba95fb02ea9e85b
    Reviewed-on: https://go-review.googlesource.com/c/142004Reviewed-by: 's avatarCherry Zhang <cherryyz@google.com>
    Run-TryBot: Cherry Zhang <cherryyz@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    6dd70fc5
Name
Last commit
Last update
..
bio Loading commit data...
browser Loading commit data...
buildid Loading commit data...
dwarf Loading commit data...
edit Loading commit data...
gcprog Loading commit data...
goobj Loading commit data...
obj Loading commit data...
objabi Loading commit data...
objfile Loading commit data...
src Loading commit data...
sys Loading commit data...
test2json Loading commit data...
xcoff Loading commit data...