Bug 535146 - Semi-colon expected after await
Summary: Semi-colon expected after await
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-26 11:45 EDT by Vasili Gulevich CLA
Modified: 2022-03-01 11:15 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vasili Gulevich CLA 2018-05-26 11:45:10 EDT
Following code produces an error marker "Semi-colon expected" in JavaScript Editor: 

let tabs = await browser.tabs.query({});

Versions:

Eclipse IDE for JavaScript and Web Developers
Version: Photon Release Candidate 1 (4.8.0RC1)
Build id: 20180524-1423

JavaScript Development Tools	2.1.1.v201804042202 

Code sample is taken from:
https://github.com/mdn/webextensions-examples/blob/master/find-across-tabs/background.js

Await is now widely supported:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await
Comment 1 Serafin Gonzalez Motos CLA 2022-03-01 11:15:26 EST
It's absurd that we can not use jet async/await.