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: remove calls to deprecated v8 functions (NumberValue) · nodejs/node@e90e56f

File tree

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

‎src/async_wrap.cc‎

Copy file name to clipboardExpand all lines: src/async_wrap.cc
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,15 +410,17 @@ void AsyncWrap::PopAsyncIds(const FunctionCallbackInfo<Value>& args) {
410410
void AsyncWrap::AsyncReset(const FunctionCallbackInfo<Value>& args) {
411411
AsyncWrap* wrap;
412412
ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder());
413-
double execution_async_id = args[0]->IsNumber() ? args[0]->NumberValue() : -1;
413+
double execution_async_id =
414+
args[0]->IsNumber() ? args[0].As<Number>()->Value() : -1;
414415
wrap->AsyncReset(execution_async_id);
415416
}
416417

417418

418419
void AsyncWrap::QueueDestroyAsyncId(const FunctionCallbackInfo<Value>& args) {
419420
CHECK(args[0]->IsNumber());
420421
AsyncWrap::EmitDestroy(
421-
Environment::GetCurrent(args), args[0]->NumberValue());
422+
Environment::GetCurrent(args),
423+
args[0].As<Number>()->Value());
422424
}
423425

424426
void AsyncWrap::AddWrapMethods(Environment* env,

0 commit comments

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