GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: elide heap allocation in structured clone implementation · nodejs/node@f0d8f37

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_messaging.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_messaging.cc‎

Copy file name to clipboardExpand all lines: src/node_messaging.cc
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1619,11 +1619,11 @@ static void StructuredClone(const FunctionCallbackInfo<Value>& args) {
16191619
}
16201620
}
16211621

1622-
std::shared_ptr<Message> msg = std::make_shared<Message>();
1622+
Message msg;
16231623
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>())
16251625
.IsNothing() ||
1626-
!msg->Deserialize(env, context, nullptr).ToLocal(&result)) {
1626+
!msg.Deserialize(env, context, nullptr).ToLocal(&result)) {
16271627
return;
16281628
}
16291629
args.GetReturnValue().Set(result);

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.