File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -865,6 +865,8 @@ bool v8__Value__IsFunction(const v8::Value& self) { return self.IsFunction(); }
865865
866866bool v8__Value__IsAsyncFunction (const v8::Value& self) { return self.IsAsyncFunction (); }
867867
868+ bool v8__Value__IsPromise (const v8::Value& self) { return self.IsPromise (); }
869+
868870bool v8__Value__IsBoolean (const v8::Value& self) { return self.IsBoolean (); }
869871
870872bool v8__Value__IsBooleanObject (const v8::Value& self) { return self.IsBooleanObject (); }
Original file line number Diff line number Diff line change @@ -472,6 +472,7 @@ void v8__Value__NumberValue(
472472 MaybeF64 * out );
473473bool v8__Value__IsFunction (const Value * self );
474474bool v8__Value__IsAsyncFunction (const Value * self );
475+ bool v8__Value__IsPromise (const Value * self );
475476bool v8__Value__IsBoolean (const Value * self );
476477bool v8__Value__IsBooleanObject (const Value * self );
477478bool v8__Value__IsInt32 (const Value * self );
Original file line number Diff line number Diff line change @@ -2108,6 +2108,10 @@ pub const Value = struct {
21082108 return c .v8__Value__IsAsyncFunction (self .handle );
21092109 }
21102110
2111+ pub fn isPromise (self : Self ) bool {
2112+ return c .v8__Value__IsPromise (self .handle );
2113+ }
2114+
21112115 pub fn isArray (self : Self ) bool {
21122116 return c .v8__Value__IsArray (self .handle );
21132117 }
You can’t perform that action at this time.
0 commit comments