Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update compat.js
  • Loading branch information
masx200 authored Sep 15, 2020
commit 4def2449e73644f644594458f2d95f736cb7025c
14 changes: 6 additions & 8 deletions lib/internal/http2/compat.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,13 @@ function resumeStream(stream) {
}

const proxySocketHandler = {
has(stream, prop){

const ref = stream.session !== undefined ?
stream.session[kSocket] : stream;

return Reflect.has(stream, prop)||Reflect.has(ref, prop)




has(stream, prop) {
const ref = stream.session !== undefined ? stream.session[kSocket] : stream;
return Reflect.has(stream, prop) || Reflect.has(ref, prop);
},

get(stream, prop) {
switch (prop) {
case 'on':
Expand Down