diff --git a/native_mate/arguments.h b/native_mate/arguments.h index ebe49e7c8418..7975a156c2d9 100644 --- a/native_mate/arguments.h +++ b/native_mate/arguments.h @@ -60,6 +60,10 @@ class Arguments { return info_->This(); } + int Length() const { + return info_->Length(); + } + #if NODE_VERSION_AT_LEAST(0, 11, 0) template void Return(T val) {