We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8aa83c commit 01a160aCopy full SHA for 01a160a
src/env.cc
@@ -617,7 +617,7 @@ Local<Value> Environment::GetNow() {
617
CHECK_GE(now, timer_base());
618
now -= timer_base();
619
if (now <= 0xffffffff)
620
- return Integer::New(isolate(), static_cast<uint32_t>(now));
+ return Integer::NewFromUnsigned(isolate(), static_cast<uint32_t>(now));
621
else
622
return Number::New(isolate(), static_cast<double>(now));
623
}
0 commit comments