mirror of
https://github.com/tc39/test262.git
synced 2025-10-18 14:23:54 +02:00
30 lines
768 B
JavaScript
30 lines
768 B
JavaScript
// Copyright (C) 2024 Igalia S.L. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
esid: sec-json.rawjson
|
|
description: >
|
|
JSON.rawJSON.name value and descriptor.
|
|
info: |
|
|
JSON.rawJSON ( text )
|
|
|
|
18 ECMAScript Standard Built-in Objects
|
|
Every other data property described in clauses 19 through 28 and in Annex B.2
|
|
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
|
[[Configurable]]: true } unless otherwise specified.
|
|
|
|
includes: [propertyHelper.js]
|
|
features: [json-parse-with-source]
|
|
---*/
|
|
|
|
assert.sameValue(
|
|
JSON.rawJSON.name, 'rawJSON',
|
|
'The value of JSON.rawJSON.name is "rawJSON"'
|
|
);
|
|
|
|
verifyProperty(JSON.rawJSON, 'name', {
|
|
enumerable: false,
|
|
writable: false,
|
|
configurable: true
|
|
});
|