mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: do not run dialog callback inside transaction commit (#31606)
This commit is contained in:
@@ -106,6 +106,12 @@ class Promise : public PromiseBase {
|
||||
return resolved.GetHandle();
|
||||
}
|
||||
|
||||
// Convert to another type.
|
||||
template <typename NT>
|
||||
Promise<NT> As() {
|
||||
return Promise<NT>(isolate(), GetInner());
|
||||
}
|
||||
|
||||
// Promise resolution is a microtask
|
||||
// We use the MicrotasksRunner to trigger the running of pending microtasks
|
||||
v8::Maybe<bool> Resolve(const RT& value) {
|
||||
|
||||
Reference in New Issue
Block a user