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

ScriptElement#async produces an Error #35329

Open
MikeMitterer opened this Issue Dec 5, 2018 · 0 comments

Comments

Projects
None yet
2 participants
@MikeMitterer

MikeMitterer commented Dec 5, 2018

import "dart:html" as dom;

main() {
    final script = dom.ScriptElement();
    script.async = true;

}

produces:

[SEVERE] build_web_compilers|ddc on web/main.dartdevc.module:
Error compiling dartdevc module:m4d_chartjs_sample|web/main.ddc.js

[error] The keywords 'async', 'await', and 'yield' can't be used as identifiers in an asynchronous or generator function. (/web/main.dart, line 74, col 12)

Dart VM version: 2.1.0 (Tue Nov 13 18:22:02 2018 +0100) on "macos_x64"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment