Skip to content

URL with Object.prototype.toString #10554

Closed
@stevenvachon

Description

@stevenvachon

In Chrome:

Object.prototype.toString.call( new URL("http://domain.com/") )
//-> [object URL]

In Node:

const URL = require("url").URL;
Object.prototype.toString.call( new URL("http://domain.com/") )
//-> [object Object]

@jasnell

Metadata

Metadata

Assignees

No one assigned

    Labels

    urlIssues and PRs related to the legacy built-in url module.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