Debian Codegraph @

js/src/tests/test262/built-ins/Error/isError/prop-desc.js

raw
1 // |reftest| shell-option(--enable-error-iserror) skip-if(!Error.isError||!xulRuntime.shell) -- Error.isError 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 /*---
6 esid: sec-error.iserror
7 description: Property descriptor for Error.isError
8 info: |
9 Every other data property described in clauses 18 through 26 and in Annex B.2
10 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
11 [[Configurable]]: true } unless otherwise specified.
12 includes: [propertyHelper.js]
13 features: [Error.isError]
14 ---*/
15
16 verifyProperty(Error, "isError", {
17 writable: true,
18 enumerable: false,
19 configurable: true
20 });
21
22 reportCompare(0, 0);