mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
src: fix coverity warning
- reduce copying by using std::move Signed-off-by: Michael Dawson <midawson@redhat.com> PR-URL: https://github.com/nodejs/node/pull/50846 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
5811a59016
commit
fd9195d750
1 file changed
+1
-1
@@ -1472,7 +1472,7 @@ void ContextifyContext::ContainsModuleSyntax(
|
||||
ContextifyContext::CompileFunctionAndCacheResult(env,
|
||||
context,
|
||||
&source,
|
||||
params,
|
||||
std::move(params),
|
||||
std::vector<Local<Object>>(),
|
||||
options,
|
||||
true,
|
||||
|
||||
Reference in new issue
Block a user