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 c177560 commit 1cd18e6Copy full SHA for 1cd18e6
cppsrc/main.cpp
@@ -86,7 +86,7 @@ Snowflake::Snowflake(const Napi::CallbackInfo &info) : Napi::ObjectWrap<Snowflak
86
{
87
auto argLen = info.Length();
88
if (argLen != 2)
89
- Napi::TypeError::New(env, "Expected two arguments.").ThrowAsJavaScriptException();
+ Napi::TypeError::New(info.Env(), "Expected two arguments.").ThrowAsJavaScriptException();
90
91
this->_CUSTOM_EPOCH = info[0].As<Napi::Number>().Int64Value();
92
// If the number is bigger than maxNodeId than those bits will be fall off
0 commit comments