fix: optional postMessage transfer arg (#32433)
This commit is contained in:
parent
1aaa0fad69
commit
6c88e3b8e7
3 changed files with 14 additions and 2 deletions
|
@ -146,7 +146,7 @@ class IPCRenderer : public gin::Wrappable<IPCRenderer>,
|
|||
}
|
||||
|
||||
std::vector<v8::Local<v8::Object>> transferables;
|
||||
if (transfer) {
|
||||
if (transfer && !transfer.value()->IsUndefined()) {
|
||||
if (!gin::ConvertFromV8(isolate, *transfer, &transferables)) {
|
||||
thrower.ThrowTypeError("Invalid value for transfer");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue