Skip to content
Snippets Groups Projects
early-errors-object-method-async-lineterminator.js 337 B
// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: prod-AsyncMethod
description: async methods cannot have a line terminator between "async" and the property name
negative:
  phase: early
  type: SyntaxError
---*/

!{
  async
  foo() { }
}