mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add support for native creation and resolution of Promises (fixes issue #3305)
This commit is contained in:
committed by
Marshall Greenblatt
parent
60ee4a34aa
commit
fa643b269e
@ -237,6 +237,7 @@ class CefV8ValueImpl : public CefV8Value {
|
||||
bool IsArray() override;
|
||||
bool IsArrayBuffer() override;
|
||||
bool IsFunction() override;
|
||||
bool IsPromise() override;
|
||||
bool IsSame(CefRefPtr<CefV8Value> value) override;
|
||||
bool GetBoolValue() override;
|
||||
int32 GetIntValue() override;
|
||||
@ -282,6 +283,9 @@ class CefV8ValueImpl : public CefV8Value {
|
||||
CefRefPtr<CefV8Value> object,
|
||||
const CefV8ValueList& arguments) override;
|
||||
|
||||
bool ResolvePromise(CefRefPtr<CefV8Value> arg) override;
|
||||
bool RejectPromise(const CefString& errorMsg) override;
|
||||
|
||||
private:
|
||||
// Test for and record any exception.
|
||||
bool HasCaught(v8::Local<v8::Context> context, v8::TryCatch& try_catch);
|
||||
|
Reference in New Issue
Block a user