Open therckenrath opened 2 years ago
You are talking about this hint ?
If you want you can disable it by adding some comment lines like this:
function start() {
/* jshint ignore:start */
async function test() {
}
/* jshint ignore:end */
test();
}
I will have a look to update the hint to be compliant with the last version of JavaScript.
Anyway this hint will not block you for saving the behavior.
Yes, that's it!
Thanks for the tip regarding the jshint comments 😀🙏
Terry
On Mon., Apr. 4, 2022, 4:14 p.m. Erwan Carriou, @.***> wrote:
You are talking about this hint ?
[image: Capture d’écran 2022-04-04 à 22 07 24] https://user-images.githubusercontent.com/2214504/161623675-8346f5ae-ce84-4c3e-85f4-4967a16819ee.png
If you want you can disabled by adding some comment lines like this:
function start() {
/ jshint ignore:start /
async function test() {
}
/ jshint ignore:end /
test(); }
I will have a look to update the hint to be compliant with the last version of JavaScript.
Anyway this hint will not block you for saving the behavior.
— Reply to this email directly, view it on GitHub https://github.com/design-first/system-designer/issues/145#issuecomment-1087969336, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALMMFG35GXDEQB7H5VBRF5DVDNETRANCNFSM5SOCOQQA . You are receiving this because you authored the thread.Message ID: @.***>
You are welcome.
I made a commit (see https://github.com/design-first/system-designer/commit/24613b75c440e8c4e8e538571bdf6c070d9f575e) to update JSHint options in order to be compliant with the latest version of JavaScript.
Expect to have it in the next release.
I'm trying to create an async function inside a behavior and I get the following message:
"async functions" is only available is ES8 (use 'esversion: 8').
I tried to add it to the behavior declaration in the model, however the message is still displayed, suggesting I didn't add it in the correct place.
Where do I add this?