Closed Bug 1336962 Opened 7 years ago Closed 7 years ago

async function not worked, results in syntax error

Categories

(Core :: JavaScript Engine, defect)

51 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: meinolf.amekudzi, Unassigned)

References

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:51.0) Gecko/20100101 Firefox/51.0
Build ID: 20170125094131

Steps to reproduce:

foo.prototype.myAsyncTest=async function(){};


Actual results:

SyntaxError: missing ; before statement


Expected results:

In Chrome it's running well, in Firefox a syntax error occured.
Component: Untriaged → JavaScript Engine
Product: Firefox → Core
Async functions will be available in Firefox 52, so in about a month from now, see bug 1185106.

You can already try them by downloading the current beta version or the Developer Edition: https://www.mozilla.org/en-US/firefox/channel/desktop/#beta
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Depends on: 1185106
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.