File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -410,15 +410,17 @@ void AsyncWrap::PopAsyncIds(const FunctionCallbackInfo<Value>& args) {
410410void 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
418419void 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
424426void AsyncWrap::AddWrapMethods (Environment* env,
You can’t perform that action at this time.
0 commit comments