Eliminate false positives: Promise.prototype.finally

This commit is contained in:
Rick Waldron 2018-11-30 09:34:25 -05:00
parent 628faa5e06
commit 6d2288fe79
2 changed files with 3 additions and 0 deletions

View File

@ -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');

View File

@ -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();