0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib/internal/http2
Anatoli Papirovski 01a55ee8cb
http2: remove unnecessary asserts in core
options.getTrailers & options.selectPadding will always be a
function by the time the code reaches the assert checks. And
even if not (which seems currently impossible), the assert
failure will be almost the same as calling something that is
not a function. The downside of leaving these is that typeof
checks are decently expensive.

PR-URL: https://github.com/nodejs/node/pull/16327
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
2017-10-22 13:31:21 -04:00
..
compat.js http2: near full http1 compatibility, add tests 2017-10-06 14:04:22 -07:00
core.js http2: remove unnecessary asserts in core 2017-10-22 13:31:21 -04:00
util.js http2: simplify te header validation, add test 2017-10-19 07:53:09 -04:00