diff options
Diffstat (limited to 'lib/internal/http2/compat.js')
-rw-r--r-- | lib/internal/http2/compat.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/http2/compat.js b/lib/internal/http2/compat.js index ba52c9adea..37f8242b00 100644 --- a/lib/internal/http2/compat.js +++ b/lib/internal/http2/compat.js @@ -1,6 +1,6 @@ 'use strict'; -const { Reflect } = primordials; +const { Object, ObjectPrototype, Reflect } = primordials; const assert = require('internal/assert'); const Stream = require('stream'); @@ -539,7 +539,7 @@ class Http2ServerResponse extends Stream { hasHeader(name) { validateString(name, 'name'); name = name.trim().toLowerCase(); - return Object.prototype.hasOwnProperty.call(this[kHeaders], name); + return ObjectPrototype.hasOwnProperty(this[kHeaders], name); } removeHeader(name) { |