Skip to content

http2: simplify onSelectPadding

OnCallbackPadding on the native side already clamps the return value into the right range, so there’s not need to also do that on the JS side.

Also, use >>> 0 instead of | 0 to get an uint32, since the communication with C++ land happens through an Uint32Array.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

http2

CI: https://ci.nodejs.org/job/node-test-commit/14901/

Merge request reports

Loading