From 8b695c176067c60a076c803c8f37a9eea634f3dd Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Thu, 13 Dec 2018 08:13:47 +0100 Subject: [PATCH] test: remove dead code This is not used by the test anymore. PR-URL: https://github.com/nodejs/node/pull/25009 Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Rich Trott --- test/es-module/test-esm-dynamic-import.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/test/es-module/test-esm-dynamic-import.js b/test/es-module/test-esm-dynamic-import.js index 6cbbd0ac67dd66..0023b5f2d80808 100644 --- a/test/es-module/test-esm-dynamic-import.js +++ b/test/es-module/test-esm-dynamic-import.js @@ -3,7 +3,6 @@ const common = require('../common'); const assert = require('assert'); const { URL } = require('url'); -const vm = require('vm'); const relativePath = '../fixtures/es-modules/test-esm-ok.mjs'; const absolutePath = require.resolve('../fixtures/es-modules/test-esm-ok.mjs'); @@ -21,23 +20,6 @@ function expectMissingModuleError(result) { expectErrorProperty(result, 'code', 'MODULE_NOT_FOUND'); } -function expectInvalidUrlError(result) { - expectErrorProperty(result, 'code', 'ERR_INVALID_URL'); -} - -function expectInvalidReferrerError(result) { - expectErrorProperty(result, 'code', 'ERR_INVALID_URL'); -} - -function expectInvalidProtocolError(result) { - expectErrorProperty(result, 'code', 'ERR_INVALID_PROTOCOL'); -} - -function expectInvalidContextError(result) { - expectErrorProperty(result, - 'message', 'import() called outside of main context'); -} - function expectOkNamespace(result) { Promise.resolve(result) .then(common.mustCall(ns => {