| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
@ryzokuken build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/398/pipeline |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, although it’s probably easier to just use ->IsTrue(), and I don’t think that would count as a breaking change ;) (edit: at least if we do the coercion in JS first)
Sorry, something went wrong.
|
@addaleax Maybe<bool>::IsTrue is a thing? I didn't know. Also, wouldn't that somehow hurt what we're doing here, as we don't exactly want the same condition to execute? We want it to return to JS-Land if Nothing was returned. Again, I might be very wrong, but let's look into this. |
Sorry, something went wrong.
|
@ryzokuken value->IsTrue() is a thing, and if we can reasonably expect that value is a boolean already, it’s equivalent to value->BooleanValue(context).ToLocalChecked(). For setAutoPadding, we don’t do any typechecking, but we could make that simplification by using !!ap instead of ap in the JS layer. For getStringWidth, I’m not sure – they appear unused anyway, beyond a test which accesses internal functions directly (?). For setNoDelay, we already convert to boolean, so args[0]->IsTrue() is okay to use. |
Sorry, something went wrong.
|
ping @ryzokuken, looks like this PR needs a rebase :) |
Sorry, something went wrong.
|
@maclover7 Will do over the weekend, thanks. |
Sorry, something went wrong.
Remove all calls to deprecated v8 functions (here: Value::BooleanValue) inside the code (src directory only).
|
I fixed the conflicts and handled the remaining cases. |
Sorry, something went wrong.
|
Cannot approve it myself, but LG. |
Sorry, something went wrong.
|
CI is green. Can we have at least 1 LG for my additions? |
Sorry, something went wrong.
|
@targos Sorry, missed the pings – yes, this still LGTM :) |
Sorry, something went wrong.
Remove all calls to deprecated v8 functions (here: Value::BooleanValue) inside the code (src directory only). PR-URL: nodejs#22075 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
|
Thanks again, @targos. You're the real MVP. |
Sorry, something went wrong.
Remove all calls to deprecated v8 functions (here: Value::BooleanValue) inside the code (src directory only). PR-URL: #22075 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Remove all calls to deprecated v8 functions (here: Value::BooleanValue) inside the code (src directory only). PR-URL: #22075 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Remove all calls to deprecated v8 functions (here: Value::BooleanValue) inside the code (src directory only). PR-URL: #22075 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
| Back | FazBrowse Home | New Git URL |
Remove all calls to deprecated v8 functions (here:
Value::BooleanValue) inside the code (src directory only).
Checklist
@addaleax @hashseed a quick one.