Merge pull request #4085 from sosukesuzuki/fifx-promise-try-tests-2

Remove incorrect property access in `Promise.try` test
This commit is contained in:
Jordan Harband 2024-05-17 06:31:04 -07:00 committed by GitHub
commit d9c67327ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ class SubPromise extends Promise {
var instance = Promise.try.call(SubPromise, function () {});
assert.sameValue(instance.promise.constructor, SubPromise);
assert.sameValue(instance.promise instanceof SubPromise, true);
assert.sameValue(instance.constructor, SubPromise);
assert.sameValue(instance instanceof SubPromise, true);
assert.sameValue(callCount, 1);
assert.sameValue(typeof executor, 'function');