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

javascript.statements.for_await_of - Minimum Safari version should be 12, not 11 #14522

Closed
evanw opened this issue Jan 12, 2022 · 0 comments · Fixed by #20495
Closed

javascript.statements.for_await_of - Minimum Safari version should be 12, not 11 #14522

evanw opened this issue Jan 12, 2022 · 0 comments · Fixed by #20495
Labels
data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript

Comments

@evanw
Copy link

evanw commented Jan 12, 2022

What information was incorrect, unhelpful, or incomplete?

Incorrect

What did you expect to see?

for await loops are only supported in Safari 12+ according to the kangax compatibility table.

Did you test this? If so, how?

I tested it on Safari 11.1 on BrowserStack and the syntax cannot even be parsed. Here's a screenshot:

SyntaxError: Unexpected identifier 'await'. Expected '(' to start a for-loop header.

MDN page report details

Additional context: evanw/esbuild#1930

@queengooborg queengooborg added the data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript label Jan 13, 2022
queengooborg added a commit to queengooborg/browser-compat-data that referenced this issue Aug 6, 2023
This PR updates and corrects version values for Safari (Desktop and iOS/iPadOS) for the `for_await_of` member of the `statements` JavaScript feature. This fixes mdn#14522.
Elchi3 pushed a commit that referenced this issue Aug 7, 2023
This PR updates and corrects version values for Safari (Desktop and iOS/iPadOS) for the `for_await_of` member of the `statements` JavaScript feature. This fixes #14522.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:js 📟 Compat data for JS/ECMAScript features. https://developer.mozilla.org/docs/Web/JavaScript
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants