From f6dd54eb1928f80bc3e3c99efbc0f586d54cafe8 Mon Sep 17 00:00:00 2001
From: Rick Waldron <waldron.rick@gmail.com>
Date: Mon, 22 May 2017 14:18:53 -0400
Subject: [PATCH] update the async func templates to match async generator
 templates (error)

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
---
 .../error/for-await-of-async-func-const.template           | 7 ++++++-
 .../error/for-await-of-async-func-let.template             | 7 ++++++-
 .../error/for-await-of-async-func-var.template             | 7 ++++++-
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/src/dstr-binding-for-await/error/for-await-of-async-func-const.template b/src/dstr-binding-for-await/error/for-await-of-async-func-const.template
index dc2fc2499b..0461728772 100644
--- a/src/dstr-binding-for-await/error/for-await-of-async-func-const.template
+++ b/src/dstr-binding-for-await/error/for-await-of-async-func-const.template
@@ -43,6 +43,11 @@ async function fn() {
 }
 
 fn()
-  .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, /*{ error }*/))
+  .then(_ => {
+    throw new Test262Error("Expected async function to reject, but resolved.");
+  }, ({ constructor }) => {
+    assert.sameValue(constructor, /*{ error }*/);
+    /*{ rejectBody }*/
+  })
   .then($DONE, $DONE);
 
diff --git a/src/dstr-binding-for-await/error/for-await-of-async-func-let.template b/src/dstr-binding-for-await/error/for-await-of-async-func-let.template
index 291b51a648..1a018086d8 100644
--- a/src/dstr-binding-for-await/error/for-await-of-async-func-let.template
+++ b/src/dstr-binding-for-await/error/for-await-of-async-func-let.template
@@ -43,6 +43,11 @@ async function fn() {
 }
 
 fn()
-  .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, /*{ error }*/))
+  .then(_ => {
+    throw new Test262Error("Expected async function to reject, but resolved.");
+  }, ({ constructor }) => {
+    assert.sameValue(constructor, /*{ error }*/);
+    /*{ rejectBody }*/
+  })
   .then($DONE, $DONE);
 
diff --git a/src/dstr-binding-for-await/error/for-await-of-async-func-var.template b/src/dstr-binding-for-await/error/for-await-of-async-func-var.template
index ab9ae97124..cfc53e2858 100644
--- a/src/dstr-binding-for-await/error/for-await-of-async-func-var.template
+++ b/src/dstr-binding-for-await/error/for-await-of-async-func-var.template
@@ -43,5 +43,10 @@ async function fn() {
 }
 
 fn()
-  .then(_ => { throw new Test262Error("Expected async function to reject, but resolved."); }, ({ constructor }) => assert.sameValue(constructor, /*{ error }*/))
+  .then(_ => {
+    throw new Test262Error("Expected async function to reject, but resolved.");
+  }, ({ constructor }) => {
+    assert.sameValue(constructor, /*{ error }*/);
+    /*{ rejectBody }*/
+  })
   .then($DONE, $DONE);
-- 
GitLab