-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
src: fix broken fast callback signatures #59055
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
base: main
Are you sure you want to change the base?
Conversation
Review requested:
|
d230f2e
to
7f27665
Compare
if (value < 1) { | ||
HandleScope scope(options.isolate); | ||
THROW_ERR_OUT_OF_RANGE(options.isolate, "value is out of range"); | ||
return; | ||
} |
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.
value
is validated in the JS layer, so a debug check should be fine here.
7f27665
to
93048b8
Compare
93048b8
to
9926389
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #59055 +/- ##
==========================================
+ Coverage 90.06% 90.08% +0.01%
==========================================
Files 645 645
Lines 189130 189126 -4
Branches 37094 37090 -4
==========================================
+ Hits 170339 170372 +33
+ Misses 11511 11466 -45
- Partials 7280 7288 +8
🚀 New features to boost your workflow:
|
Since #54408, the various fast callbacks that were edited by that PR have broken signatures and have not been invoked. (The changed signatures would only have been valid if the receiver were prepended to the function arguments wherever those bindings were called from JS, which isn't the case.)
There was no debug tracking of these callbacks, so this went unnoticed at the time.
This change fixes the broken signatures and adds debug testing to validate the fast paths.
This effectively reverts the remaining source changes from #54408 that were not already covered by #58054.