Error when I use the keyword "await"

34 views
Skip to first unread message

gstu...@gmail.com

unread,
Oct 2, 2017, 12:17:51 PM10/2/17
to Ace Internals Dev
Hello,

In "JAVASCRIPT" mode, how do I delete "Missing ";" before statement" error in the "ace_gutter" div when I use the keyword "await", like "await delay (500);"?

Thanks

Harutyun Amirjanyan

unread,
Oct 4, 2017, 11:40:28 AM10/4/17
to ace-in...@googlegroups.com
Hi

you can use 
editor.session.$worker.call("changeOptions", [{ asi: false /*any other jshint options here*/}])

but this can change in the future when we switch from jshint to eslint.

Thanks
Harutyun
Reply all
Reply to author
Forward
0 new messages