From 900855b07bb5ce2ea7c5106486e700f4c757f14c Mon Sep 17 00:00:00 2001 From: Gus Caplan Date: Sat, 8 Feb 2020 15:06:33 -0800 Subject: [PATCH] Fix Promise/prototype/finally/rejected-observable-then-calls-argument --- .../finally/rejected-observable-then-calls-argument.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js b/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js index d96bbad012..42ef3f81fd 100644 --- a/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js +++ b/test/built-ins/Promise/prototype/finally/rejected-observable-then-calls-argument.js @@ -19,7 +19,7 @@ flags: [async] Promise.reject(new Test262Error()) .finally(function() {}) - .then(() => $DONE(), $DONE); + .then($DONE, () => $DONE()); var calls = 0; var expected = [ @@ -28,7 +28,7 @@ var expected = [ ]; var then = Promise.prototype.then; -Promise.prototype.then = function(resolve) { +Promise.prototype.then = function(resolve, reject) { assert(!isConstructor(resolve)); assert.sameValue(resolve.length, expected[calls].length); assert.sameValue(resolve.name, expected[calls].name); @@ -38,5 +38,5 @@ Promise.prototype.then = function(resolve) { calls += 1; - return then.call(this, resolve); + return then.call(this, resolve, reject); };