Debian Codegraph @

js/src/tests/test262/built-ins/JSON/isRawJSON/length.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-built-in-function-objects
7 description: >
8 JSON.isRawJSON.length value and descriptor.
9 info: |
10 Every built-in function object, including constructors, has a *"length"*
11 property whose value is a non-negative integral Number. Unless otherwise
12 specified, this value is the number of required parameters shown in the
13 subclause heading for the function description. Optional parameters and rest
14 parameters are not included in the parameter count.
15
16 Unless otherwise specified, the *"length"* property of a built-in function
17 object has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*,
18 [[Configurable]]: *true* }.
19 includes: [propertyHelper.js]
20 features: [json-parse-with-source]
21 ---*/
22
23 verifyProperty(JSON.isRawJSON, 'length', {
24 value: 1,
25 writable: false,
26 enumerable: false,
27 configurable: true
28 });
29
30 reportCompare(0, 0);