From d950fe3736e3393911d6edc00d77e6fd2e8ed16b Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 22 Apr 2014 15:57:11 +0800 Subject: [PATCH] Add Arguments.Length method. --- native_mate/arguments.h | 4 ++++ 1 file changed, 4 insertions(+) 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) {