Strict mode Failing
Expected no error, got SyntaxError: warning: the variable "async" was not declared in anonymous function " 9#"
Features:
- ∅
Expected no error, got SyntaxError: warning: the variable "async" was not declared in anonymous function " 9#"
// Copyright (C) 2017 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- esid: prod-AsyncArrowFunction description: > async arrows cannot have a line terminator between "async" and the AsyncArrowBindingIdentifier info: | 14.7 Async Arrow Function Definitions AsyncArrowFunction: async [no LineTerminator here] AsyncArrowBindingIdentifier [no LineTerminator here] => AsyncConciseBody [...] ---*/ assert.throws(ReferenceError, function() { async identifier => {} });