| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 84acb9f commit 563bed0
14 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ function main({ type, n }) { | |||
| 17 | 17 | encodemany: { | |
| 18 | 18 | '\u0080\u0083\u0089': 'bar', | |
| 19 | 19 | '\u008C\u008E\u0099': 'quux', | |
| 20 | - xyzzy: '\u00A5q\u00A3r' | ||
| 20 | + 'xyzzy': '\u00A5q\u00A3r' | ||
| 21 | 21 | }, | |
| 22 | 22 | encodelast: { | |
| 23 | 23 | foo: 'bar', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -40,7 +40,7 @@ function search(target, base) { | |||
| 40 | 40 | } | |
| 41 | 41 | ||
| 42 | 42 | const extensionFormatMap = { | |
| 43 | - __proto__: null, | ||
| 43 | + '__proto__': null, | ||
| 44 | 44 | '.mjs': 'esm', | |
| 45 | 45 | '.json': 'json', | |
| 46 | 46 | '.node': 'addon', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -102,9 +102,9 @@ const testData = [ | |||
| 102 | 102 | meta: { | |
| 103 | 103 | added: ['v5.3.0', 'v4.2.0'], | |
| 104 | 104 | changes: [ | |
| 105 | - { version: 'v4.2.0', | ||
| 105 | + { 'version': 'v4.2.0', | ||
| 106 | 106 | 'pr-url': 'https://github.com/nodejs/node/pull/3276', | |
| 107 | - description: 'The `error` parameter can now be ' + | ||
| 107 | + 'description': 'The `error` parameter can now be ' + | ||
| 108 | 108 | 'an arrow function.' | |
| 109 | 109 | } | |
| 110 | 110 | ] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -9,8 +9,8 @@ function execute(options) { | |||
| 9 | 9 | http.createServer(function(req, res) { | |
| 10 | 10 | const expectHeaders = { | |
| 11 | 11 | 'x-foo': 'boom', | |
| 12 | - cookie: 'a=1; b=2; c=3', | ||
| 13 | - connection: 'close' | ||
| 12 | + 'cookie': 'a=1; b=2; c=3', | ||
| 13 | + 'connection': 'close' | ||
| 14 | 14 | }; | |
| 15 | 15 | ||
| 16 | 16 | // no Host header when you set headers an array | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,10 +37,10 @@ http.createServer(function(req, res) { | |||
| 37 | 37 | 'close' | |
| 38 | 38 | ]; | |
| 39 | 39 | const expectHeaders = { | |
| 40 | - host: `localhost:${this.address().port}`, | ||
| 40 | + 'host': `localhost:${this.address().port}`, | ||
| 41 | 41 | 'transfer-encoding': 'CHUNKED', | |
| 42 | 42 | 'x-bar': 'yoyoyo', | |
| 43 | - connection: 'close' | ||
| 43 | + 'connection': 'close' | ||
| 44 | 44 | }; | |
| 45 | 45 | const expectRawTrailers = [ | |
| 46 | 46 | 'x-bAr', | |
@@ -96,9 +96,9 @@ http.createServer(function(req, res) { | |||
| 96 | 96 | 'chunked' | |
| 97 | 97 | ]; | |
| 98 | 98 | const expectHeaders = { | |
| 99 | - trailer: 'x-foo', | ||
| 100 | - date: null, | ||
| 101 | - connection: 'close', | ||
| 99 | + 'trailer': 'x-foo', | ||
| 100 | + 'date': null, | ||
| 101 | + 'connection': 'close', | ||
| 102 | 102 | 'transfer-encoding': 'chunked' | |
| 103 | 103 | }; | |
| 104 | 104 | res.rawHeaders[3] = null; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -33,7 +33,7 @@ server.listen(0, common.mustCall(() => { | |||
| 33 | 33 | const client = http2.connect(`http://localhost:${server.address().port}`); | |
| 34 | 34 | const req = client.request({ | |
| 35 | 35 | ':method': 'POST', | |
| 36 | - expect: '100-continue' | ||
| 36 | + 'expect': '100-continue' | ||
| 37 | 37 | }); | |
| 38 | 38 | ||
| 39 | 39 | let gotContinue = false; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -29,7 +29,7 @@ server.on('listening', common.mustCall(() => { | |||
| 29 | 29 | const client = http2.connect(`http://localhost:${server.address().port}`); | |
| 30 | 30 | const req = client.request({ | |
| 31 | 31 | ':method': 'POST', | |
| 32 | - expect: '100-continue' | ||
| 32 | + 'expect': '100-continue' | ||
| 33 | 33 | }); | |
| 34 | 34 | ||
| 35 | 35 | let gotContinue = false; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ function nextTest(testsToRun) { | |||
| 30 | 30 | ':method': 'GET', | |
| 31 | 31 | ':scheme': 'http', | |
| 32 | 32 | ':authority': `localhost:${port}`, | |
| 33 | - expect: expectValue | ||
| 33 | + 'expect': expectValue | ||
| 34 | 34 | }); | |
| 35 | 35 | ||
| 36 | 36 | req.on('response', common.mustCall((headers) => { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,8 +41,8 @@ server.on('listening', common.mustCall(() => { | |||
| 41 | 41 | ||
| 42 | 42 | const req = client.request({ | |
| 43 | 43 | ':path': '/', | |
| 44 | - abc: [1, 2, 3], | ||
| 45 | - cookie: ['a=b', 'c=d', 'e=f'], | ||
| 44 | + 'abc': [1, 2, 3], | ||
| 45 | + 'cookie': ['a=b', 'c=d', 'e=f'], | ||
| 46 | 46 | }); | |
| 47 | 47 | req.resume(); | |
| 48 | 48 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,7 +17,7 @@ function onStream(stream, headers, flags) { | |||
| 17 | 17 | common.expectsError(() => { | |
| 18 | 18 | stream.additionalHeaders({ | |
| 19 | 19 | ':status': 123, | |
| 20 | - abc: 123 | ||
| 20 | + 'abc': 123 | ||
| 21 | 21 | }); | |
| 22 | 22 | }, { code: 'ERR_HTTP2_INVALID_STREAM' }); | |
| 23 | 23 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments