Debian Codegraph @

js/src/tests/test262/built-ins/JSON/isRawJSON/prop-desc.js

raw
1 // |reftest| shell-option(--enable-json-parse-with-source) skip-if(!JSON.hasOwnProperty('isRawJSON')||!xulRuntime.shell) -- json-parse-with-source is not enabled unconditionally, requires shell-options
2 // Copyright (C) 2024 Igalia S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-json.israwjson
7 description: >
8 Property type and descriptor.
9 info: |
10 JSON.isRawJSON ( O )
11
12 18 ECMAScript Standard Built-in Objects
13 ...
14 Every other data property described in clauses 19 through 28 and in Annex B.2
15 has the attributes { [[Writable]]: true, [[Enumerable]]: false,
16 [[Configurable]]: true } unless otherwise specified.
17
18 includes: [propertyHelper.js]
19 features: [json-parse-with-source]
20 ---*/
21
22 verifyProperty(JSON, 'isRawJSON', {
23 enumerable: false,
24 writable: true,
25 configurable: true
26 });
27
28 reportCompare(0, 0);