From ad064a631c5b0fe809f486d2aaca37c67202416c Mon Sep 17 00:00:00 2001
From: Mike Pennisi <mike@mikepennisi.com>
Date: Tue, 23 Jun 2015 13:42:19 -0400
Subject: [PATCH] fixup! Fix bug in test

---
 .../prototype/then/S25.4.5.3_A3.1_T1.js       | 23 +++++++------------
 1 file changed, 8 insertions(+), 15 deletions(-)

diff --git a/test/built-ins/Promise/prototype/then/S25.4.5.3_A3.1_T1.js b/test/built-ins/Promise/prototype/then/S25.4.5.3_A3.1_T1.js
index 9c9eedd162..9df20f84e9 100644
--- a/test/built-ins/Promise/prototype/then/S25.4.5.3_A3.1_T1.js
+++ b/test/built-ins/Promise/prototype/then/S25.4.5.3_A3.1_T1.js
@@ -14,21 +14,14 @@ var p = Promise.resolve("foo");
 
 Object.defineProperty(p, "constructor", {
     get: function () {
-        throw new Error("abrupt completion");
+        throw new Test262Error();
     }
 });
 
-try {
-    p.then(function () {
-        $ERROR("Should never be called.");
-    }, function () {
-        $ERROR("Should never be called.");
-    });
-} catch (e) {
-    if (!(e instanceof Error)) {
-        $ERROR("Expected Error, got " + e);
-    }
-    if (e.message !== "abrupt completion") {
-        $ERROR("Expected the Error we threw, got " + e);
-    }
-}
+assert.throws(Test262Error, function() {
+  p.then(function() {
+    $ERROR("Should never be called.");
+  }, function() {
+    $ERROR("Should never be called.");
+  });
+});
-- 
GitLab