From d9f1ca697a97f9ca83d732379a5bc69d668c0711 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 29 Oct 2023 07:02:25 -0700 Subject: [PATCH] Revert "made linting changes" This reverts commit b1e3d31561f55c8c8ac4fd7cd3664c9b2c5dad28. --- lib/internal/url.js | 1 + test/parallel/test-url-revokeobjecturl.js | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/internal/url.js b/lib/internal/url.js index e4862050784f381..f37b00c3c00ef18 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -1104,6 +1104,7 @@ 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 656c92a7d03c103..a5b5fb47ec3bcf4 100644 --- a/test/parallel/test-url-revokeobjecturl.js +++ b/test/parallel/test-url-revokeobjecturl.js @@ -1,4 +1,5 @@ 'use strict'; +const common = require('../common'); // Test ensures that the function receives the url argument.