Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

internal class (or type) "URL" #191

Closed
stevenvachon opened this issue Dec 31, 2016 · 4 comments
Closed

internal class (or type) "URL" #191

stevenvachon opened this issue Dec 31, 2016 · 4 comments

Comments

@stevenvachon
Copy link

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

Related: nodejs/node#10554

@domenic
Copy link
Member

domenic commented Dec 31, 2016

What is the issue here?

@stevenvachon
Copy link
Author

stevenvachon commented Dec 31, 2016

It was suggested in the linked Node.js issue that the type be defined in the spec. Currently, Node.js is inconsistent with browser implementations in that it is the only one that returns [object Object] with the above code.

@domenic
Copy link
Member

domenic commented Dec 31, 2016

This is already defined in the spec, because the spec uses Web IDL.

@domenic domenic closed this as completed Dec 31, 2016
@stevenvachon
Copy link
Author

Thank you.

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

No branches or pull requests

2 participants