Debian Codegraph @

js/src/tests/test262/built-ins/Promise/try/name.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 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 description: Promise.try `name` property
6 includes: [propertyHelper.js]
7 features: [promise-try]
8 ---*/
9
10 verifyProperty(Promise.try, "name", {
11 value: "try",
12 writable: false,
13 enumerable: false,
14 configurable: true
15 });
16
17 reportCompare(0, 0);