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: replace create new Array · nodejs/node@b554ff7

File tree

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

‎src/node_serdes.cc‎

Copy file name to clipboardExpand all lines: src/node_serdes.cc
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,11 @@ void DeserializerContext::ReadUint64(const FunctionCallbackInfo<Value>& args) {
399399
Isolate* isolate = ctx->env()->isolate();
400400
Local<Context> context = ctx->env()->context();
401401

402-
Local<Array> ret = Array::New(isolate, 2);
403-
ret->Set(context, 0, Integer::NewFromUnsigned(isolate, hi)).FromJust();
404-
ret->Set(context, 1, Integer::NewFromUnsigned(isolate, lo)).FromJust();
405-
return args.GetReturnValue().Set(ret);
402+
Local<Value> ret[] = {
403+
Integer::NewFromUnsigned(isolate, hi),
404+
Integer::NewFromUnsigned(isolate, lo)
405+
};
406+
return args.GetReturnValue().Set(Array::New(isolate, ret, arraysize(ret)));
406407
}
407408

408409
void DeserializerContext::ReadDouble(const FunctionCallbackInfo<Value>& args) {

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.