aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/bindings/JSFFIFunction.h
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-11 05:54:43 -0800
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-02-11 17:31:16 -0800
commit5528c0fa47399a28e2caadf540f4b385c6bb3f4f (patch)
treecc1f4deff8bc38f4b1ee74e76e9e5c43cfdf33f2 /src/bun.js/bindings/JSFFIFunction.h
parentc208c4e3197920ae4bf78463cc91014ede8dd951 (diff)
downloadbun-5528c0fa47399a28e2caadf540f4b385c6bb3f4f.tar.gz
bun-5528c0fa47399a28e2caadf540f4b385c6bb3f4f.tar.zst
bun-5528c0fa47399a28e2caadf540f4b385c6bb3f4f.zip
Backport std::forward change
Diffstat (limited to 'src/bun.js/bindings/JSFFIFunction.h')
-rw-r--r--src/bun.js/bindings/JSFFIFunction.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bun.js/bindings/JSFFIFunction.h b/src/bun.js/bindings/JSFFIFunction.h
index 45257cf49..1ec37f767 100644
--- a/src/bun.js/bindings/JSFFIFunction.h
+++ b/src/bun.js/bindings/JSFFIFunction.h
@@ -56,9 +56,9 @@ public:
return WebCore::subspaceForImpl<JSFFIFunction, WebCore::UseCustomHeapCellType::No>(
vm,
[](auto& spaces) { return spaces.m_clientSubspaceForFFIFunction.get(); },
- [](auto& spaces, auto&& space) { spaces.m_clientSubspaceForFFIFunction = WTFMove(space); },
+ [](auto& spaces, auto&& space) { spaces.m_clientSubspaceForFFIFunction = std::forward<decltype(space)>(space); },
[](auto& spaces) { return spaces.m_subspaceForFFIFunction.get(); },
- [](auto& spaces, auto&& space) { spaces.m_subspaceForFFIFunction = WTFMove(space); });
+ [](auto& spaces, auto&& space) { spaces.m_subspaceForFFIFunction = std::forward<decltype(space)>(space); });
}
DECLARE_EXPORT_INFO;