| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
return env->isolate()->ThrowException(error);? The call to rc.ToLocalChecked() two lines down will fail if you fall through.
Same issue appears a few more times further down in this file.
Sorry, something went wrong.
There was a problem hiding this comment.
done
Sorry, something went wrong.
There was a problem hiding this comment.
Stylistic change.
Sorry, something went wrong.
There was a problem hiding this comment.
fixed up, this was not intentional
Sorry, something went wrong.
There was a problem hiding this comment.
Suggestion: move the .IsEmpty() checks to after the StringBytes::Encode() calls, then you don't have to do the goto jump-around thing.
Sorry, something went wrong.
There was a problem hiding this comment.
error is cleared by StringBytes::Encode() if the call succeeded… I’ve thought about doing that, would you prefer to change that behaviour? I can see the advantage that would have.
Sorry, something went wrong.
There was a problem hiding this comment.
Good idea. I was thinking of guarding the Encode() calls with an error.IsEmpty() check but that's a good idea.
Sorry, something went wrong.
There was a problem hiding this comment.
@bnoordhuis Done, PTAL!
Sorry, something went wrong.
|
@bnoordhuis Mind taking another look? |
Sorry, something went wrong.
There was a problem hiding this comment.
Mildly unrelated change.
Sorry, something went wrong.
The previous errors were incorrect here, as the code only failed in situations where strings exceeded size limits or an OOM situation was encountered, not for invalid encodings (which aren’t even detected explicitly). Unfortunately, these situations are hard to test for. PR-URL: nodejs#14579 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
|
CI: https://ci.nodejs.org/job/node-test-commit/11985/ This should be ready. |
Sorry, something went wrong.
|
@addaleax ... fyi https://ci.nodejs.org/job/node-test-commit-aix/8108/nodes=aix61-ppc64/console Can you check to see if this failure is related to the change? |
Sorry, something went wrong.
|
Ugh … a lot of the Linux failures are the same, so, probably? test-commit-linux on master for comparison: https://ci.nodejs.org/job/node-test-commit-linux/12023/ |
Sorry, something went wrong.
|
Sigh. Yes, also a problem on master, so I’ll take a look. |
Sorry, something went wrong.
|
I'm digging in also. :-) This wasn't a problem earlier today so it has to be one of the PRs landed today.... and I can't get to Jenkins... sigh. Will keep trying |
Sorry, something went wrong.
|
Heh, okay, I think I got this. |
Sorry, something went wrong.
|
Um.. that's confusing then :-/ ... the CI was good for that PR even on 32 bit system. What do you have? |
Sorry, something went wrong.
Sorry, something went wrong.
The previous errors were incorrect here, as the code only failed in situations where strings exceeded size limits or an OOM situation was encountered, not for invalid encodings (which aren’t even detected explicitly). Unfortunately, these situations are hard to test for. PR-URL: #14579 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
The previous errors were incorrect here, as the code only failed in situations where strings exceeded size limits or an OOM situation was encountered, not for invalid encodings (which aren’t even detected explicitly). Unfortunately, these situations are hard to test for. PR-URL: nodejs/node#14579 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
The previous errors were incorrect here, as the code only failed in situations where strings exceeded size limits or an OOM situation was encountered, not for invalid encodings (which aren’t even detected explicitly). Unfortunately, these situations are hard to test for. PR-URL: nodejs/node#14579 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
| Back | FazBrowse Home | New Git URL |
The previous errors were incorrect here, as the code
only failed in situations where strings exceeded size limits or
an OOM situation was encountered, not for invalid encodings
(which aren’t even detected explicitly).
Unfortunately, these situations are hard to test for.
Checklist
Affected core subsystem(s)
src