| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 747f107 commit 271927f
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,14 +40,14 @@ inline AsyncWrap::AsyncWrap(Environment* env, | |||
| 40 | 40 | v8::HandleScope scope(env->isolate()); | |
| 41 | 41 | ||
| 42 | 42 | v8::Local<v8::Value> argv[] = { | |
| 43 | - v8::Integer::New(env->isolate(), get_uid()), | ||
| 43 | + v8::Number::New(env->isolate(), get_uid()), | ||
| 44 | 44 | v8::Int32::New(env->isolate(), provider), | |
| 45 | 45 | Null(env->isolate()), | |
| 46 | 46 | Null(env->isolate()) | |
| 47 | 47 | }; | |
| 48 | 48 | ||
| 49 | 49 | if (parent != nullptr) { | |
| 50 | - argv[2] = v8::Integer::New(env->isolate(), parent->get_uid()); | ||
| 50 | + argv[2] = v8::Number::New(env->isolate(), parent->get_uid()); | ||
| 51 | 51 | argv[3] = parent->object(); | |
| 52 | 52 | } | |
| 53 | 53 | ||
@@ -72,7 +72,7 @@ inline AsyncWrap::~AsyncWrap() { | |||
| 72 | 72 | v8::Local<v8::Function> fn = env()->async_hooks_destroy_function(); | |
| 73 | 73 | if (!fn.IsEmpty()) { | |
| 74 | 74 | v8::HandleScope scope(env()->isolate()); | |
| 75 | - v8::Local<v8::Value> uid = v8::Integer::New(env()->isolate(), get_uid()); | ||
| 75 | + v8::Local<v8::Value> uid = v8::Number::New(env()->isolate(), get_uid()); | ||
| 76 | 76 | v8::TryCatch try_catch(env()->isolate()); | |
| 77 | 77 | v8::MaybeLocal<v8::Value> ret = | |
| 78 | 78 | fn->Call(env()->context(), v8::Null(env()->isolate()), 1, &uid); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,6 +19,7 @@ using v8::Integer; | |||
| 19 | 19 | using v8::Isolate; | |
| 20 | 20 | using v8::Local; | |
| 21 | 21 | using v8::MaybeLocal; | |
| 22 | + using v8::Number; | ||
| 22 | 23 | using v8::Object; | |
| 23 | 24 | using v8::RetainedObjectInfo; | |
| 24 | 25 | using v8::TryCatch; | |
@@ -198,7 +199,7 @@ Local<Value> AsyncWrap::MakeCallback(const Local<Function> cb, | |||
| 198 | 199 | ||
| 199 | 200 | Local<Function> pre_fn = env()->async_hooks_pre_function(); | |
| 200 | 201 | Local<Function> post_fn = env()->async_hooks_post_function(); | |
| 201 | - Local<Value> uid = Integer::New(env()->isolate(), get_uid()); | ||
| 202 | + Local<Value> uid = Number::New(env()->isolate(), get_uid()); | ||
| 202 | 203 | Local<Object> context = object(); | |
| 203 | 204 | Local<Object> domain; | |
| 204 | 205 | bool has_domain = false; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments