1
0
mirror of https://github.com/golang/go synced 2024-11-17 17:44:46 -07:00
go/misc/wasm
Richard Musiol 08a8fa9c47 misc/wasm: ensure correct stack pointer in catch clauses
The stack pointer may have changed after a call from JavaScript into Go
code because of stack growth. The normal case already updated the
sp variable accordingly, but the catch case did not yet.

Fixes #45433

Change-Id: I3e0a33381929626f6b21902948935eb5ffb26c96
Reviewed-on: https://go-review.googlesource.com/c/go/+/321936
Trust: Richard Musiol <neelance@gmail.com>
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
2021-05-24 22:12:19 +00:00
..
go_js_wasm_exec
wasm_exec.html
wasm_exec.js misc/wasm: ensure correct stack pointer in catch clauses 2021-05-24 22:12:19 +00:00