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.
receive
nstroke
1 parent 044ba85 commit 5bd33dfCopy full SHA for 5bd33df
src/binding.cc
@@ -266,7 +266,7 @@ Value Send(const CallbackInfo& info) {
266
Value Receive(const CallbackInfo& info) {
267
Env env = info.Env();
268
269
- if (info.Length() < 3) throw TypeError::New(env, "Wrong number of arguments");
+ if (info.Length() < 2) throw TypeError::New(env, "Wrong number of arguments");
270
if (!info[0].IsExternal()) throw TypeError::New(env, "Invalid 'context' value");
271
if (!info[1].IsNumber()) throw TypeError::New(env, "Invalid 'device' value");
272
0 commit comments