]> Cypherpunks.ru repositories - gostls13.git/commit
misc/wasm: ensure correct stack pointer in catch clauses
authorRichard Musiol <mail@richard-musiol.de>
Sun, 23 May 2021 21:06:43 +0000 (23:06 +0200)
committerRichard Musiol <neelance@gmail.com>
Mon, 24 May 2021 22:12:19 +0000 (22:12 +0000)
commit08a8fa9c471603c7ec44895392c6bfa31a8ddcb6
tree77da46d607e9aef80c6599a876f0309837759d8f
parent32b73ae18026e8a9dc4c5aa49999b1ea445bc68c
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>
misc/wasm/wasm_exec.js