GeezerVison is showing github.com — test,benchmark: stop requiring URL and URLSearchParams · nodejs/node@d97917f
File treeExpand file treeCollapse file tree Open diff view settings Some content is hiddenLarge Commits have some content hidden by default. Use the searchbox below for content that may be hidden. Dismiss bannerExpand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: benchmark/url/legacy-vs-whatwg-url-searchparams-parse.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 | const common = require('../common.js'); | 3 | | -const { URLSearchParams } = require('url'); | 4 | 3 | const querystring = require('querystring'); | 5 | 4 | const searchParams = common.searchParams; | 6 | 5 |
| |
Collapse file Copy file name to clipboardExpand all lines: benchmark/url/legacy-vs-whatwg-url-searchparams-serialize.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 | const common = require('../common.js'); | 3 | | -const { URLSearchParams } = require('url'); | 4 | 3 | const querystring = require('querystring'); | 5 | 4 | const searchParams = common.searchParams; | 6 | 5 |
| |
Collapse file Copy file name to clipboardExpand all lines: benchmark/url/url-searchparams-iteration.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 | const common = require('../common.js'); | 3 | 3 | const assert = require('assert'); | 4 | | -const { URLSearchParams } = require('url'); | 5 | 4 |
| 6 | 5 | const bench = common.createBenchmark(main, { | 7 | 6 | loopMethod: ['forEach', 'iterator'], | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/url/url-searchparams-read.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 | const common = require('../common.js'); | 3 | | -const { URLSearchParams } = require('url'); | 4 | 3 |
| 5 | 4 | const bench = common.createBenchmark(main, { | 6 | 5 | accessMethod: ['get', 'getAll', 'has'], | |
Collapse file Copy file name to clipboardExpand all lines: benchmark/url/url-searchparams-sort.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 | const common = require('../common.js'); | 3 | | -const URLSearchParams = require('url').URLSearchParams; | 4 | 3 |
| 5 | 4 | const inputs = { | 6 | 5 | wpt: 'wpt', // To work around tests | |
Collapse file Copy file name to clipboardExpand all lines: test/es-module/test-esm-dynamic-import.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 | const common = require('../common'); | 3 | 3 | const assert = require('assert'); | 4 | | -const { URL } = require('url'); | 5 | 4 |
| 6 | 5 | const relativePath = '../fixtures/es-modules/test-esm-ok.mjs'; | 7 | 6 | const absolutePath = require.resolve('../fixtures/es-modules/test-esm-ok.mjs'); | |
Collapse file Copy file name to clipboardExpand all lines: test/es-module/test-esm-loader-modulemap.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 7 | 7 | require('../common'); | 8 | 8 |
| 9 | 9 | const assert = require('assert'); | 10 | | -const { URL } = require('url'); | 11 | 10 | const { Loader } = require('internal/modules/esm/loader'); | 12 | 11 | const ModuleMap = require('internal/modules/esm/module_map'); | 13 | 12 | const ModuleJob = require('internal/modules/esm/module_job'); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-fs-exists.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 23 | 23 | const common = require('../common'); | 24 | 24 | const assert = require('assert'); | 25 | 25 | const fs = require('fs'); | 26 | | -const { URL } = require('url'); | 27 | 26 | const f = __filename; | 28 | 27 |
| 29 | 28 | assert.throws(() => fs.exists(f), { code: 'ERR_INVALID_CALLBACK' }); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-fs-null-bytes.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 23 | 23 | const common = require('../common'); | 24 | 24 | const assert = require('assert'); | 25 | 25 | const fs = require('fs'); | 26 | | -const URL = require('url').URL; | 27 | 26 |
| 28 | 27 | function check(async, sync) { | 29 | 28 | const argsSync = Array.prototype.slice.call(arguments, 2); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-fs-whatwg-url.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -6,7 +6,6 @@ const assert = require('assert'); | 6 | 6 | const path = require('path'); | 7 | 7 | const fs = require('fs'); | 8 | 8 | const os = require('os'); | 9 | | -const URL = require('url').URL; | 10 | 9 |
| 11 | 10 | function pathToFileURL(p) { | 12 | 11 | if (!path.isAbsolute(p)) | |
|