Add Arguments.Length method.
This commit is contained in:
parent
9cc90ac7d5
commit
d950fe3736
1 changed files with 4 additions and 0 deletions
|
@ -60,6 +60,10 @@ class Arguments {
|
|||
return info_->This();
|
||||
}
|
||||
|
||||
int Length() const {
|
||||
return info_->Length();
|
||||
}
|
||||
|
||||
#if NODE_VERSION_AT_LEAST(0, 11, 0)
|
||||
template<typename T>
|
||||
void Return(T val) {
|
||||
|
|
Loading…
Reference in a new issue