refactor: reduce code duplication in gin_helper::Promise (33-x-y) (#43778)

refactor: reduce code duplication in gin_helper::Promise (#43716)

* refactor: move scope scaffolding into SettletScope

idea stolen from SpellCheckScope

* refactor: move impl of PromiseBase::RejectPromise() to the cc file

* chore: remove unused #include

Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
This commit is contained in:
Charles Kerr 2024-09-19 06:01:13 -05:00 committed by GitHub
parent 68869c18cd
commit 5c92ea76e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 85 additions and 87 deletions

View file

@ -125,6 +125,7 @@
#include "shell/common/gin_converters/value_converter.h"
#include "shell/common/gin_helper/dictionary.h"
#include "shell/common/gin_helper/error_thrower.h"
#include "shell/common/gin_helper/locker.h"
#include "shell/common/gin_helper/object_template_builder.h"
#include "shell/common/gin_helper/promise.h"
#include "shell/common/language_util.h"