| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 439b816 commit 9c8ad7e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1619,11 +1619,11 @@ static void StructuredClone(const FunctionCallbackInfo<Value>& args) { | |||
| 1619 | 1619 | } | |
| 1620 | 1620 | } | |
| 1621 | 1621 | ||
| 1622 | - std::shared_ptr<Message> msg = std::make_shared<Message>(); | ||
| 1622 | + Message msg; | ||
| 1623 | 1623 | Local<Value> result; | |
| 1624 | - if (msg->Serialize(env, context, value, transfer_list, Local<Object>()) | ||
| 1624 | + if (msg.Serialize(env, context, value, transfer_list, Local<Object>()) | ||
| 1625 | 1625 | .IsNothing() || | |
| 1626 | - !msg->Deserialize(env, context, nullptr).ToLocal(&result)) { | ||
| 1626 | + !msg.Deserialize(env, context, nullptr).ToLocal(&result)) { | ||
| 1627 | 1627 | return; | |
| 1628 | 1628 | } | |
| 1629 | 1629 | args.GetReturnValue().Set(result); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments