GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • benchmark/mime
    • parse-type-and-subtype.js
    • to-ascii-lower.js
  • lib/internal
    • mime.js
  • test/parallel
    • test-mime-api.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎benchmark/mime/parse-type-and-subtype.js‎

Copy file name to clipboardExpand all lines: benchmark/mime/parse-type-and-subtype.js
-53Lines changed: 0 additions & 53 deletions
This file was deleted.
Collapse file

‎benchmark/mime/to-ascii-lower.js‎

Copy file name to clipboardExpand all lines: benchmark/mime/to-ascii-lower.js
-54Lines changed: 0 additions & 54 deletions
This file was deleted.
Collapse file

‎lib/internal/mime.js‎

Copy file name to clipboardExpand all lines: lib/internal/mime.js
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,6 @@ ObjectDefineProperty(MIMEType.prototype, 'toJSON', {
384384
});
385385

386386
module.exports = {
387-
toASCIILower,
388-
parseTypeAndSubtype,
389387
MIMEParams,
390388
MIMEType,
391389
};
Collapse file

‎test/parallel/test-mime-api.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-mime-api.js
-7Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
require('../common');
55
const assert = require('assert');
66
const { MIMEType, MIMEParams } = require('util');
7-
const { toASCIILower } = require('internal/mime');
8-
97

108
const WHITESPACES = '\t\n\f\r ';
119
const NOT_HTTP_TOKEN_CODE_POINT = ',';
@@ -160,8 +158,3 @@ assert.throws(() => params.set(`x${NOT_HTTP_TOKEN_CODE_POINT}`, 'x'), /parameter
160158
assert.throws(() => params.set('x', `${NOT_HTTP_QUOTED_STRING_CODE_POINT};`), /parameter value/i);
161159
assert.throws(() => params.set('x', `${NOT_HTTP_QUOTED_STRING_CODE_POINT}x`), /parameter value/i);
162160
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');

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.