Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use std::forward() in ConvertToV8() #31857

Conversation

trop[bot]
Copy link
Contributor

@trop trop bot commented Nov 16, 2021

Backport of #31817

See that PR for details.

Notes: none

The variable `input` is accepted by a universal reference, so it doesn't
make sense to cast a potential lvalue reference into an rvalue
reference. In case `input` is an lvalue reference, we should rather
forward the value as is to `ToV8()`.

Signed-off-by: Darshan Sen <darshan.sen@postman.com>
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Nov 16, 2021
@trop trop bot mentioned this pull request Nov 16, 2021
3 tasks
@trop trop bot added 14-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Nov 16, 2021
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Nov 16, 2021
@jkleinsc jkleinsc merged commit 0fca1b5 into 14-x-y Nov 16, 2021
@jkleinsc jkleinsc deleted the trop/14-x-y-bp-chore-use-std-forward-in-converttov8--1637050550670 branch November 16, 2021 15:04
@release-clerk
Copy link

release-clerk bot commented Nov 16, 2021

No Release Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
14-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants