mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-10-04 18:34:51 -04:00
1. Every `var caught: js.TryCatch.Caught = undefined;` is now defaulted to .{}.
This eliminates a possible dirty read. Function tryCall (and its variants)
were guarding against this, but newInstance wasn't.
2. Env.terminate() now immediately sets `terminate_requested` which means
`isExecutionTerminating` is removed and only `terminatePending` exists, and
it only needs to check `terminate_requested`.