Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 110fd39

Browse filesBrowse files
BridgeARBethGriggs
authored andcommitted
test: remove dead code
This is not used by the test anymore. PR-URL: #25009 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 302081b commit 110fd39
Copy full SHA for 110fd39

File tree

Expand file treeCollapse file tree

1 file changed

+0
-18
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-18
lines changed
Open diff view settings
Collapse file

‎test/es-module/test-esm-dynamic-import.js‎

Copy file name to clipboardExpand all lines: test/es-module/test-esm-dynamic-import.js
-18Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
const common = require('../common');
44
const assert = require('assert');
55
const { URL } = require('url');
6-
const vm = require('vm');
76

87
const relativePath = '../fixtures/es-modules/test-esm-ok.mjs';
98
const absolutePath = require.resolve('../fixtures/es-modules/test-esm-ok.mjs');
@@ -21,23 +20,6 @@ function expectMissingModuleError(result) {
2120
expectErrorProperty(result, 'code', 'MODULE_NOT_FOUND');
2221
}
2322

24-
function expectInvalidUrlError(result) {
25-
expectErrorProperty(result, 'code', 'ERR_INVALID_URL');
26-
}
27-
28-
function expectInvalidReferrerError(result) {
29-
expectErrorProperty(result, 'code', 'ERR_INVALID_URL');
30-
}
31-
32-
function expectInvalidProtocolError(result) {
33-
expectErrorProperty(result, 'code', 'ERR_INVALID_PROTOCOL');
34-
}
35-
36-
function expectInvalidContextError(result) {
37-
expectErrorProperty(result,
38-
'message', 'import() called outside of main context');
39-
}
40-
4123
function expectOkNamespace(result) {
4224
Promise.resolve(result)
4325
.then(common.mustCall(ns => {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.