Skip to content

URL: URL.revokeObjectURL accepts no parameters when 1 is required #50432

Closed
@KhafraDev

Description

@KhafraDev

Version

n/a

Platform

n/a

Subsystem

url

What steps will reproduce the bug?

URL.revokeObjectURL()

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior? Why is that the expected behavior?

this should throw a TypeError

What do you see instead?

undefined

Additional information

node/lib/internal/url.js

Lines 1106 to 1108 in 3c1b4b3

function revokeObjectURL(url) {
bindingBlob.revokeObjectURL(`${url}`);
}

a check is needed along the lines of

node/lib/internal/url.js

Lines 772 to 774 in 3c1b4b3

if (arguments.length === 0) {
throw new ERR_MISSING_ARGS('url');
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueIssues that are suitable for first-time contributors.whatwg-urlIssues and PRs related to the WHATWG URL implementation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions