GeezerVison is showing github.com — util: remove internal mime fns from benchmarks · nodejs/node@bf5b211
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: benchmark/mime/parse-type-and-subtype.js -53Lines changed: 0 additions & 53 deletions Collapse file
Copy file name to clipboardExpand all lines: benchmark/mime/to-ascii-lower.js -54Lines changed: 0 additions & 54 deletions Collapse file
Copy file name to clipboardExpand all lines: lib/internal/mime.js -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -384,8 +384,6 @@ ObjectDefineProperty(MIMEType.prototype, 'toJSON', { |
384 | 384 | }); |
385 | 385 |
|
386 | 386 | module.exports = { |
387 | | - toASCIILower, |
388 | | - parseTypeAndSubtype, |
389 | 387 | MIMEParams, |
390 | 388 | MIMEType, |
391 | 389 | }; |
Collapse file
Copy file name to clipboardExpand all lines: test/parallel/test-mime-api.js -7Lines changed: 0 additions & 7 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | require('../common'); |
5 | 5 | const assert = require('assert'); |
6 | 6 | const { MIMEType, MIMEParams } = require('util'); |
7 | | -const { toASCIILower } = require('internal/mime'); |
8 | | - |
9 | 7 |
|
10 | 8 | const WHITESPACES = '\t\n\f\r '; |
11 | 9 | const NOT_HTTP_TOKEN_CODE_POINT = ','; |
@@ -160,8 +158,3 @@ assert.throws(() => params.set(`x${NOT_HTTP_TOKEN_CODE_POINT}`, 'x'), /parameter |
160 | 158 | assert.throws(() => params.set('x', `${NOT_HTTP_QUOTED_STRING_CODE_POINT};`), /parameter value/i); |
161 | 159 | assert.throws(() => params.set('x', `${NOT_HTTP_QUOTED_STRING_CODE_POINT}x`), /parameter value/i); |
162 | 160 | assert.throws(() => params.set('x', `x${NOT_HTTP_QUOTED_STRING_CODE_POINT}`), /parameter value/i); |
163 | | - |
164 | | -assert.strictEqual(toASCIILower('someThing'), 'something'); |
165 | | -assert.strictEqual(toASCIILower('SomeThing'), 'something'); |
166 | | -assert.strictEqual(toASCIILower('SomeThing3'), 'something3'); |
167 | | -assert.strictEqual(toASCIILower('ABCDEFGHIJKLMNOPQRSTUVWXYZ'), 'abcdefghijklmnopqrstuvwxyz'); |