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

URL missing as part of the WebAPI #1170

Closed
HoffmannP opened this issue Jul 31, 2018 · 3 comments

Comments

@HoffmannP
Copy link

commented Jul 31, 2018

What version of standard?
8.6.0

What operating system, Node.js, and npm version?
Linux Mint 19
Node: 10.7.0
npm: 6.1.0

What did you expect to happen?
No Error (see https://developer.mozilla.org/de/docs/Web/API/URL/URL)

What actually happened?
'URL' is not defined.

echo "let url = new URL('www.google.com'); console.log(url)" | standard -
> standard: Use JavaScript Standard Style (http://standardjs.com)
> <text>:1:15: 'URL' is not defined.
@stale

This comment has been minimized.

Copy link

commented Oct 29, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Oct 29, 2018

@HoffmannP

This comment has been minimized.

Copy link
Author

commented Oct 29, 2018

My bad, I didn't explicitly state that I wanted an browser environment.

echo "let url = new URL('www.google.com'); console.log(url)" | \
standard --stdin --env browser

works as expected (no error).

@stale stale bot removed the stale label Oct 29, 2018

@HoffmannP

This comment has been minimized.

Copy link
Author

commented Oct 29, 2018

My bad, I didn't explicitly state that I wanted an browser environment.

echo "let url = new URL('www.google.com'); console.log(url)" | \
standard --stdin --env browser

works as expected (no error).

@HoffmannP HoffmannP closed this Oct 29, 2018

@lock lock bot locked as resolved and limited conversation to collaborators Jan 27, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
1 participant
You can’t perform that action at this time.