There was an error while loading. Please reload this page.
1 parent fcca2f7 commit 82e71ddCopy full SHA for 82e71dd
src/env.cc
@@ -536,7 +536,7 @@ Local<Value> Environment::GetNow() {
536
CHECK_GE(now, timer_base());
537
now -= timer_base();
538
if (now <= 0xffffffff)
539
- return Integer::New(isolate(), static_cast<uint32_t>(now));
+ return Integer::NewFromUnsigned(isolate(), static_cast<uint32_t>(now));
540
else
541
return Number::New(isolate(), static_cast<double>(now));
542
}
0 commit comments