Skip to content

Commit 110fd39

Browse 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

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

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

-18
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)