test262/test/language/expressions/object/method-definition/early-errors-object-method-async-lineterminator.js

16 lines
337 B
JavaScript

// 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 () { }
}