diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-09-17 14:17:08 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-09-20 20:18:35 +0200 |
commit | ac59dc42edb721ede2e5ddc6d1e4945ee2bf1e9c (patch) | |
tree | b73ea409a56d4efc04dc452713d46222faed1d05 /test/parallel/test-http-parser-lazy-loaded.js | |
parent | ba3be578d8bbca1bafc391984b0e6f037507dcbc (diff) | |
download | android-node-v8-ac59dc42edb721ede2e5ddc6d1e4945ee2bf1e9c.tar.gz android-node-v8-ac59dc42edb721ede2e5ddc6d1e4945ee2bf1e9c.tar.bz2 android-node-v8-ac59dc42edb721ede2e5ddc6d1e4945ee2bf1e9c.zip |
http: remove legacy parser
Remove the legacy `http_parser` implementation as a dependency
and all code that uses it in favor of llhttp, given that the latter
has been the default for all of Node 12 with no outstanding issues.
PR-URL: https://github.com/nodejs/node/pull/29589
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'test/parallel/test-http-parser-lazy-loaded.js')
-rw-r--r-- | test/parallel/test-http-parser-lazy-loaded.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/parallel/test-http-parser-lazy-loaded.js b/test/parallel/test-http-parser-lazy-loaded.js index a6c19f9353..3c4a7e7ce9 100644 --- a/test/parallel/test-http-parser-lazy-loaded.js +++ b/test/parallel/test-http-parser-lazy-loaded.js @@ -3,7 +3,6 @@ 'use strict'; const common = require('../common'); const { internalBinding } = require('internal/test/binding'); -const { getOptionValue } = require('internal/options'); // Monkey patch before requiring anything class DummyParser { @@ -16,9 +15,7 @@ class DummyParser { } DummyParser.REQUEST = Symbol(); -const binding = - getOptionValue('--http-parser') === 'legacy' ? - internalBinding('http_parser') : internalBinding('http_parser_llhttp'); +const binding = internalBinding('http_parser'); binding.HTTPParser = DummyParser; const assert = require('assert'); |