GoogleChromeLabs / native-url

Node's url module implemented using the built-in URL API.
https://npm.im/native-url
Apache License 2.0
284 stars 11 forks source link

Can't parse Url instance #21

Closed janicklas-ralph closed 4 years ago

janicklas-ralph commented 4 years ago

Expected Behavior

Value returned by the parse method should be able to be parsed again without throwing an error Eg - nativeUrl.parse(nativeUrl.parse('http://example.com')) // Should work

Actual Behavior

nativeUrl.parse(nativeUrl.parse('http://example.com')) // Throws an error

Steps to Reproduce the Problem

Run nativeUrl.parse(nativeUrl.parse('http://example.com'))