diff options
author | Yash Ladha <18033231+yashLadha@users.noreply.github.com> | 2022-03-09 01:31:56 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-09 01:31:56 +0300 |
commit | f2676b9ea932b6032ba7f78bce8a225423d5ebb4 (patch) | |
tree | 37af0c8643cc7535d436da66aee13c3315201253 /src/node.cc | |
parent | 4b198ffa7e681824dea10ed372a9ed7201c2c7f5 (diff) |
src: use `emplace_back` instead of `push_back`
PR-URL: https://github.com/nodejs/node/pull/42159
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node.cc')
-rw-r--r-- | src/node.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node.cc b/src/node.cc index 4840b18feed..a85a5f63259 100644 --- a/src/node.cc +++ b/src/node.cc @@ -816,7 +816,7 @@ int ProcessGlobalArgs(std::vector<std::string>* args, // is removed in V8. if (std::find(v8_args.begin(), v8_args.end(), "--no-harmony-import-assertions") == v8_args.end()) { - v8_args.push_back("--harmony-import-assertions"); + v8_args.emplace_back("--harmony-import-assertions"); } auto env_opts = per_process::cli_options->per_isolate->per_env; |