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

new URL is not being serialized properly #261

Closed
Kikobeats opened this issue Feb 7, 2023 · 0 comments · Fixed by #368
Closed

new URL is not being serialized properly #261

Kikobeats opened this issue Feb 7, 2023 · 0 comments · Fixed by #368
Labels
bug Something isn't working

Comments

@Kikobeats
Copy link
Member

Bug Report

ƒ => new URL('https://example.com')
URL {  }
ƒ => const url = new URL('https://example.com')
undefined
ƒ => url
URL {  }
ƒ =>

Expected behavior/code

> new URL('https://example.com')
URL {
  href: 'https://example.com/',
  origin: 'https://example.com',
  protocol: 'https:',
  username: '',
  password: '',
  host: 'example.com',
  hostname: 'example.com',
  port: '',
  pathname: '/',
  search: '',
  searchParams: URLSearchParams {},
  hash: ''
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant