GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — benchmark: throw on invalid type in fs and webstorage by irontaek · Pull Request #66647 · nodejs/node Conversation
Contributor
In 21 fs and webstorage benchmarks, the Before: $ node benchmark/fs/bench-existsSync.js type=bogus n=10 fs/bench-existsSync.js n=10 type="bogus": 42,410.43975384981 After, the same command throws Disclosure: this change was found by a static check for discarded
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
irontaek
force-pushed
the
benchmark-throw-invalid-type
branch
from
622bc2e to
2c08205
Compare
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #66647 +/- ## ========================================== + Coverage 90.71% 90.73% +0.01% ========================================== Files 801 801 Lines 280906 280906 Branches 54249 54258 +9 ========================================== + Hits 254832 254877 +45 + Misses 16246 16193 -53 - Partials 9828 9836 +8 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Friendly ping for review. Both commits now include sign-offs, and all GitHub checks are passing. This also includes the targeted lint rule suggested above. Is there anything else needed from my side? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@atlowChemi since the lint rule here came from your suggestion, would you be able to take a look when you have a moment? Happy to adjust the selector or split the rule into a separate PR if that's easier to review. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@irontaek can you rebase over main so we don't land the PR and have the lint rule error on code in main not fixed by the PR? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The default branch of the type switch constructed an Error without throwing it, so an unknown type silently benchmarked an undefined path instead of failing. Assisted-by: a closed-source coding agent Signed-off-by: Minho Yoo <[email protected]>
Add a no-restricted-syntax selector next to the existing ThrowStatement one. It would have caught the benchmark bug fixed in the previous commit; the two intentional sites are disabled inline. Assisted-by: a closed-source coding agent Signed-off-by: Minho Yoo <[email protected]>
2c08205 to
b66ce2a
Compare
|
Rebased onto current main (2d8a7f3). I also ran ESLint with only the new selector enabled across |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in 2b365b2...2ab7bc0 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
The default branch of the type switch constructed an Error without throwing it, so an unknown type silently benchmarked an undefined path instead of failing. Assisted-by: a closed-source coding agent Signed-off-by: Minho Yoo <[email protected]> PR-URL: #66647 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
Add a no-restricted-syntax selector next to the existing ThrowStatement one. It would have caught the benchmark bug fixed in the previous commit; the two intentional sites are disabled inline. Assisted-by: a closed-source coding agent Signed-off-by: Minho Yoo <[email protected]> PR-URL: #66647 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
The default branch of the type switch constructed an Error without throwing it, so an unknown type silently benchmarked an undefined path instead of failing. Assisted-by: a closed-source coding agent Signed-off-by: Minho Yoo <[email protected]> PR-URL: #66647 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
Add a no-restricted-syntax selector next to the existing ThrowStatement one. It would have caught the benchmark bug fixed in the previous commit; the two intentional sites are disabled inline. Assisted-by: a closed-source coding agent Signed-off-by: Minho Yoo <[email protected]> PR-URL: #66647 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
The default branch of the type switch constructed an Error without throwing it, so an unknown type silently benchmarked an undefined path instead of failing. Assisted-by: a closed-source coding agent Signed-off-by: Minho Yoo <[email protected]> PR-URL: nodejs#66647 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
Add a no-restricted-syntax selector next to the existing ThrowStatement one. It would have caught the benchmark bug fixed in the previous commit; the two intentional sites are disabled inline. Assisted-by: a closed-source coding agent Signed-off-by: Minho Yoo <[email protected]> PR-URL: nodejs#66647 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Chemi Atlow <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.