diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-01-27 22:05:23 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-01-31 00:14:51 +0100 |
commit | de2bdfbc6f13062741529922e4f32d2ab210105e (patch) | |
tree | fc79d72c17fbcdb3116505dec54b45477d462ac5 /src/node_perf.cc | |
parent | bb564a36882102ba8cd46878db7ea886334cac20 (diff) | |
download | node-new-de2bdfbc6f13062741529922e4f32d2ab210105e.tar.gz |
src: simplify SlicedArguments
Re-use the existing `MaybeStackBuffer` logic for `SlicedArguments`.
PR-URL: https://github.com/nodejs/node/pull/25745
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/node_perf.cc')
-rw-r--r-- | src/node_perf.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node_perf.cc b/src/node_perf.cc index 9c0091d2bc..cefd0ff26d 100644 --- a/src/node_perf.cc +++ b/src/node_perf.cc @@ -344,10 +344,10 @@ void TimerFunctionCall(const FunctionCallbackInfo<Value>& args) { v8::MaybeLocal<Value> ret; if (is_construct_call) { - ret = fn->NewInstance(context, call_args.size(), call_args.data()) + ret = fn->NewInstance(context, call_args.length(), call_args.out()) .FromMaybe(Local<Object>()); } else { - ret = fn->Call(context, args.This(), call_args.size(), call_args.data()); + ret = fn->Call(context, args.This(), call_args.length(), call_args.out()); } uint64_t end = PERFORMANCE_NOW(); |