mirror of
https://github.com/tc39/test262.git
synced 2025-05-26 01:30:28 +02:00
13 lines
366 B
JavaScript
13 lines
366 B
JavaScript
// Copyright (C) 2024 Jordan Harband. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
description: Promise.try return value is a Promise
|
|
features: [promise-try]
|
|
---*/
|
|
|
|
var instance = Promise.try(function () {});
|
|
|
|
assert.sameValue(instance.constructor, Promise);
|
|
assert.sameValue(instance instanceof Promise, true);
|