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

top level await #10

Merged
merged 4 commits into from
Jan 25, 2021
Merged

top level await #10

merged 4 commits into from
Jan 25, 2021

Conversation

Rumyra
Copy link
Contributor

@Rumyra Rumyra commented Jan 22, 2021

Adding a folder to modules with an example of using await within a module - extended from the previous examples

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hrm, I've tried testing this locally in both Fx and Chrone with the relevant flags enabled, and both browsers give me JSON errors related to the colors.json file:

  • Chrome: Uncaught SyntaxError: Unexpected token < in JSON at position 0
  • Firefox: JSON.parse: unexpected character at line 1 column 1 of the JSON data

Any thoughts?

@Rumyra
Copy link
Contributor Author

Rumyra commented Jan 25, 2021

Checking this out now - no immediate thoughts...

I hadn't tested it as if it were running from the parent directory - sorry. It should work now

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Firefox and Chrome are now both happy; nice work!

@chrisdavidmills chrisdavidmills merged commit a99def0 into mdn:master Jan 25, 2021
@Rumyra Rumyra deleted the await branch January 28, 2021 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants