diff options
author | Jordan Harband <ljharb@gmail.com> | 2023-01-09 21:38:36 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-10 05:38:36 +0000 |
commit | 757c10414776b6f035ced453599527a841f47d6e (patch) | |
tree | 8d51c5c789eb6832ab71a5cde64813c71a4f8879 /test/parallel/test-http2-multiheaders-raw.js | |
parent | 5d9a9a6ba323916a978e737e6cee73c6df956afa (diff) | |
download | node-new-757c10414776b6f035ced453599527a841f47d6e.tar.gz |
tools: add `prefer-proto` rule
fixup: add support for `Object.create(null)`
fixup: extend to any 1-argument Object.create call
fixup: add tests
PR-URL: https://github.com/nodejs/node/pull/46083
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Diffstat (limited to 'test/parallel/test-http2-multiheaders-raw.js')
-rw-r--r-- | test/parallel/test-http2-multiheaders-raw.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http2-multiheaders-raw.js b/test/parallel/test-http2-multiheaders-raw.js index 9bd48a9528..71277353dc 100644 --- a/test/parallel/test-http2-multiheaders-raw.js +++ b/test/parallel/test-http2-multiheaders-raw.js @@ -8,7 +8,7 @@ const http2 = require('http2'); const server = http2.createServer(); -const src = Object.create(null); +const src = { __proto__: null }; src['www-authenticate'] = 'foo'; src['WWW-Authenticate'] = 'bar'; src['WWW-AUTHENTICATE'] = 'baz'; |