diff --git a/lib/internal/url.js b/lib/internal/url.js index f37b00c3c00ef1..e4862050784f38 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -1104,7 +1104,6 @@ function installObjectURLMethods() { } function revokeObjectURL(url) { - if (arguments.length === 0) { throw new ERR_MISSING_ARGS('url'); } diff --git a/test/parallel/test-url-revokeobjecturl.js b/test/parallel/test-url-revokeobjecturl.js index a5b5fb47ec3bcf..656c92a7d03c10 100644 --- a/test/parallel/test-url-revokeobjecturl.js +++ b/test/parallel/test-url-revokeobjecturl.js @@ -1,5 +1,4 @@ 'use strict'; -const common = require('../common'); // Test ensures that the function receives the url argument.