Skip to content

Commit

Permalink
src: fix move after use reported by coverity
Browse files Browse the repository at this point in the history
- Fix move after use reported by coverity in
  node_contextify.cc

Signed-off-by: Michael Dawson <midawson@redhat.com>
PR-URL: #52141
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information
mhdawson authored and marco-ippolito committed May 3, 2024
1 parent dd1f761 commit 2449d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_contextify.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ void ContextifyContext::ContainsModuleSyntax(
ContextifyContext::CompileFunctionAndCacheResult(env,
context,
&source,
std::move(params),
params,
std::vector<Local<Object>>(),
options,
true,
Expand Down

0 comments on commit 2449d26

Please sign in to comment.