electron/shell
trop[bot] a3a595383d
perf: avoid redundant Promise.GetContext calls (#43618)
refactor: avoid redundant Promise.GetContext calls

Several Promise methods call `GetContext()` multiple times. From looking
at the assembly in obj/electron/electron_lib/promise.o, these redundant
calls are actually being made -- they aren't optmized out.

This PR keeps the return value in a local variable to avoid extra calls.

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <charles@charleskerr.com>
2024-09-08 10:37:26 -05:00
..
app fix: delete UvTaskRunner's timers only after they're closed (#43598) 2024-09-06 11:18:52 -05:00
browser fix: confirm a v8::Value is a v8::Object before casting it (#43603) 2024-09-06 15:26:33 -05:00
common perf: avoid redundant Promise.GetContext calls (#43618) 2024-09-08 10:37:26 -05:00
renderer fix: gin_helper::MicrotasksScope instantiation (#43209) 2024-08-05 21:46:51 -05:00
services/node fix: MessagePort closing unexpectedly with non-cloneable objects (#42580) 2024-06-19 16:43:36 -04:00
utility refactor: run Windows SelectFileDialog out of process (#42825) 2024-07-09 19:03:13 +02:00