Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.3k
src: add FromV8Value<T>() for integral and enum types#57931
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
Aditi-1400 commented Apr 18, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot commented Apr 18, 2025
Review requested:
|
codecovbot commented Apr 18, 2025 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@## main #57931 +/- ## ========================================== - Coverage 90.28% 90.27% -0.01% ========================================== Files 630 630 Lines 186158 186160 +2 Branches 36484 36476 -8 ========================================== - Hits 168067 168057 -10 + Misses 10974 10970 -4 - Partials 7117 7133 +16
🚀 New features to boost your workflow:
|
joyeecheung left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, actually the CHECKs should be more specific..
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Failed to start CI⚠ No approving reviews found ✘ Refusing to run CI on potentially unsafe PRhttps://github.com/nodejs/node/actions/runs/14540925539 |
joyeecheung commented Apr 23, 2025
This now has a conflict with the main branch, can you rebase? |
Add a template utility method FromV8Value<T>() to replace the repetitive static_cast<...>(value.As<>()‑>Value()) pattern. It also additionally adds compile‑time range checks for integers. Refs: nodejs#57146 (comment)
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
dani2542 commented May 3, 2025 via email
It worked thank you …On Sun, 4 May 2025 at 1:56 am, Node.js GitHub Bot ***@***.***> wrote: *nodejs-github-bot* left a comment (nodejs/node#57931) <#57931 (comment)> CI: https://ci.nodejs.org/job/node-test-pull-request/66564/ — Reply to this email directly, view it on GitHub <#57931 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/BQIUYLZAFWID422ZKHTNSYD24TRJFAVCNFSM6AAAAAB3NQ36XWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQNBYGY4DINRUHE> . You are receiving this because you are subscribed to this thread.Message ID: ***@***.***> |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
nodejs-github-bot commented May 26, 2025
nodejs-github-bot commented May 27, 2025
faada65 into nodejs:mainUh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot commented Jun 24, 2025
Landed in faada65 |
Add a template utility method FromV8Value<T>() to replace the repetitive static_cast<...>(value.As<>()‑>Value()) pattern. It also additionally adds compile‑time range checks for integers. Refs: #57146 (comment) PR-URL: #57931 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Add a template utility method FromV8Value<T>() to replace the repetitive static_cast<...>(value.As<>()‑>Value()) pattern. It also additionally adds compile‑time range checks for integers. Refs: #57146 (comment) PR-URL: #57931 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
Add a template utility method FromV8Value<T>() to replace the repetitive static_cast<...>(value.As<>()‑>Value()) pattern. It also additionally adds compile‑time range checks for integers. Refs: #57146 (comment) PR-URL: #57931 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
From the following comment in the pull request: #57146 (comment)
Add a template utility method
FromV8Value<T>()to replace the repetitivestatic_cast<...>(value.As<>()‑>Value())pattern. It also additionally adds compile‑time range checks for integers.I've also replaced a bunch of
static_casts with the newFromV8Value<T>()