Skip to content

URL with Object.prototype.toString #10554

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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