Debian Codegraph @

js/src/tests/test262/built-ins/Promise/try/prop-desc.js

raw
1 // |reftest| shell-option(--enable-promise-try) skip-if(!Promise.try||!xulRuntime.shell) -- promise-try is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2024 Jordan Harband. All rights reserved.
3 // See LICENSE for details.
4
5 /*---
6 author: Jordan Harband
7 description: Promise.try property descriptor
8 features: [promise-try]
9 includes: [propertyHelper.js]
10 ---*/
11
12 verifyProperty(Promise, 'try', {
13 value: Promise.try,
14 writable: true,
15 enumerable: false,
16 configurable: true
17 })
18
19 reportCompare(0, 0);