summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Promise/withResolvers/promise.js
blob: 7a58ecef146e00b160dbbe41772a7725012dbb24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (C) 2023 Peter Klecha. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
description: Promise.withResolvers return value has a property called "promise" which is a Promise
esid: sec-promise.withresolvers
features: [promise-with-resolvers]
---*/


var instance = Promise.withResolvers();

assert.sameValue(instance.promise.constructor, Promise);
assert.sameValue(instance.promise instanceof Promise, true);


reportCompare(0, 0);