diff --git a/src/node.cc b/src/node.cc index c82bd73348fe10..bcb764e400aea7 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1007,7 +1007,7 @@ MaybeLocal InternalMakeCallback(Environment* env, } else { std::vector> args(1 + argc); args[0] = callback; - std::copy(&argv[0], &argv[argc], &args[1]); + std::copy(&argv[0], &argv[argc], args.begin() + 1); ret = domain_cb->Call(env->context(), recv, args.size(), &args[0]); }