From 0ad3d51fd908dbb132595e3b41752fe31b30003e Mon Sep 17 00:00:00 2001
From: Leo Balter <leonardo.balter@gmail.com>
Date: Mon, 1 May 2017 12:29:23 -0400
Subject: [PATCH] Add an early error case for ({ async async })

---
 .../object/prop-def-invalid-async-prefix.js   | 33 +++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 test/language/expressions/object/prop-def-invalid-async-prefix.js

diff --git a/test/language/expressions/object/prop-def-invalid-async-prefix.js b/test/language/expressions/object/prop-def-invalid-async-prefix.js
new file mode 100644
index 0000000000..2667e69c30
--- /dev/null
+++ b/test/language/expressions/object/prop-def-invalid-async-prefix.js
@@ -0,0 +1,33 @@
+// Copyright (C) 2017 Mozilla Corporation. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/*---
+description: >
+  async is not a valid prefix of an identifier reference
+esid: sec-object-initializer
+info: |
+    PropertyDefinition:
+      IdentifierReference
+      CoverInitializedName
+      PropertyName : AssignmentExpression
+      MethodDefinition
+
+    MethodDefinition:
+      PropertyName ( UniqueFormalParameters ) { FunctionBody }
+      AsyncMethod
+
+    AsyncMethod:
+      async [no LineTerminator here] PropertyName ( UniqueFormalParameters ) { AsyncFunctionBody }
+      VariableDeclaration : BindingPattern Initializer
+
+      1. Let rhs be the result of evaluating Initializer.
+      2. Let rval be GetValue(rhs).
+      3. ReturnIfAbrupt(rval).
+      4. Return the result of performing BindingInitialization for
+         BindingPattern passing rval and undefined as arguments.
+negative:
+  phase: early
+  type: SyntaxError
+---*/
+
+({async async});
-- 
GitLab