async function not worked, results in syntax error

RESOLVED FIXED

Status

()

RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: meinolf.amekudzi, Unassigned)

Tracking

51 Branch
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
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.

Updated

2 years ago
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
Last Resolved: 2 years ago
Depends on: 1185106
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.