| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 993a1da commit 548cbf0
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -237,7 +237,7 @@ void LoopIdleTime(const FunctionCallbackInfo<Value>& args) { | |||
| 237 | 237 | void ELDHistogram::New(const FunctionCallbackInfo<Value>& args) { | |
| 238 | 238 | Environment* env = Environment::GetCurrent(args); | |
| 239 | 239 | CHECK(args.IsConstructCall()); | |
| 240 | - int32_t resolution = args[0].As<Int32>()->Value(); | ||
| 240 | + int64_t resolution = args[0].As<Integer>()->Value(); | ||
| 241 | 241 | CHECK_GT(resolution, 0); | |
| 242 | 242 | new ELDHistogram(env, args.This(), resolution); | |
| 243 | 243 | } | |
@@ -253,7 +253,7 @@ void ELDHistogram::Initialize(Environment* env, Local<Object> target) { | |||
| 253 | 253 | ELDHistogram::ELDHistogram( | |
| 254 | 254 | Environment* env, | |
| 255 | 255 | Local<Object> wrap, | |
| 256 | - int32_t interval) | ||
| 256 | + int64_t interval) | ||
| 257 | 257 | : IntervalHistogram( | |
| 258 | 258 | env, | |
| 259 | 259 | wrap, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -166,7 +166,7 @@ class ELDHistogram : public IntervalHistogram { | |||
| 166 | 166 | ELDHistogram( | |
| 167 | 167 | Environment* env, | |
| 168 | 168 | v8::Local<v8::Object> wrap, | |
| 169 | - int32_t interval); | ||
| 169 | + int64_t interval); | ||
| 170 | 170 | ||
| 171 | 171 | void OnInterval() override; | |
| 172 | 172 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -39,7 +39,7 @@ const { sleep } = require('internal/util'); | |||
| 39 | 39 | ); | |
| 40 | 40 | }); | |
| 41 | 41 | ||
| 42 | - [-1, 0, Infinity].forEach((i) => { | ||
| 42 | + [-1, 0, 2 ** 53, Infinity].forEach((i) => { | ||
| 43 | 43 | assert.throws( | |
| 44 | 44 | () => monitorEventLoopDelay({ resolution: i }), | |
| 45 | 45 | { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments