From 6d2288fe7940938460085d54854741e1de27fd4c Mon Sep 17 00:00:00 2001 From: Rick Waldron Date: Fri, 30 Nov 2018 09:34:25 -0500 Subject: [PATCH] Eliminate false positives: Promise.prototype.finally --- .../Promise/prototype/finally/this-value-non-object.js | 2 ++ .../Promise/prototype/finally/this-value-then-not-callable.js | 1 + 2 files changed, 3 insertions(+) diff --git a/test/built-ins/Promise/prototype/finally/this-value-non-object.js b/test/built-ins/Promise/prototype/finally/this-value-non-object.js index 1e8467b9b8..d88a70a0be 100644 --- a/test/built-ins/Promise/prototype/finally/this-value-non-object.js +++ b/test/built-ins/Promise/prototype/finally/this-value-non-object.js @@ -8,6 +8,8 @@ esid: sec-promise.prototype.finally features: [Promise.prototype.finally] ---*/ +assert.sameValue(typeof Promise.prototype.finally, 'function'); + assert.throws(TypeError, function() { Promise.prototype.finally.call(undefined); }, 'undefined'); diff --git a/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js b/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js index 253e22fe38..5ba20e2253 100644 --- a/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js +++ b/test/built-ins/Promise/prototype/finally/this-value-then-not-callable.js @@ -8,6 +8,7 @@ description: > esid: sec-promise.prototype.finally features: [Symbol, Promise.prototype.finally] ---*/ +assert.sameValue(typeof Promise.prototype.finally, 'function'); var symbol = Symbol();