mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
Address review comments
This commit is contained in:
parent
3f8d416bf5
commit
51d86807fe
@ -2,17 +2,19 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
esid: sec-json.rawjson
|
esid: sec-built-in-function-objects
|
||||||
description: >
|
description: >
|
||||||
JSON.isRawJSON.length value and descriptor.
|
JSON.isRawJSON.length value and descriptor.
|
||||||
info: |
|
info: |
|
||||||
JSON.isRawJSON ( text )
|
Every built-in function object, including constructors, has a *"length"*
|
||||||
|
property whose value is a non-negative integral Number. Unless otherwise
|
||||||
18 ECMAScript Standard Built-in Objects
|
specified, this value is the number of required parameters shown in the
|
||||||
Every other data property described in clauses 19 through 28 and in Annex B.2
|
subclause heading for the function description. Optional parameters and rest
|
||||||
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
parameters are not included in the parameter count.
|
||||||
[[Configurable]]: true } unless otherwise specified.
|
|
||||||
|
|
||||||
|
Unless otherwise specified, the *"length"* property of a built-in function
|
||||||
|
object has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*,
|
||||||
|
[[Configurable]]: *true* }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [json-parse-with-source]
|
features: [json-parse-with-source]
|
||||||
---*/
|
---*/
|
||||||
|
@ -2,27 +2,38 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
esid: sec-json.israwjson
|
esid: sec-built-in-function-objects
|
||||||
description: >
|
description: >
|
||||||
JSON.isRawJSON.name value and descriptor.
|
JSON.isRawJSON.name value and descriptor.
|
||||||
info: |
|
info: |
|
||||||
JSON.isRawJSON ( text )
|
Every built-in function object, including constructors, has a *"name"*
|
||||||
|
property whose value is a String. Unless otherwise specified, this value is
|
||||||
|
the name that is given to the function in this specification. Functions that
|
||||||
|
are identified as anonymous functions use the empty String as the value of
|
||||||
|
the *"name"* property. For functions that are specified as properties of
|
||||||
|
objects, the name value is the property name string used to access the
|
||||||
|
function. Functions that are specified as get or set accessor functions of
|
||||||
|
built-in properties have *"get"* or *"set"* (respectively) passed to the
|
||||||
|
prefix parameter when calling CreateBuiltinFunction.
|
||||||
|
|
||||||
18 ECMAScript Standard Built-in Objects
|
The value of the *"name"* property is explicitly specified for each built-in
|
||||||
Every other data property described in clauses 19 through 28 and in Annex B.2
|
function whose property key is a Symbol value. If such an explicitly
|
||||||
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
specified value starts with the prefix *"get "* or *"set "* and the function
|
||||||
[[Configurable]]: true } unless otherwise specified.
|
for which it is specified is a get or set accessor function of a built-in
|
||||||
|
property, the value without the prefix is passed to the name parameter, and
|
||||||
|
the value *"get"* or *"set"* (respectively) is passed to the prefix
|
||||||
|
parameter when calling CreateBuiltinFunction.
|
||||||
|
|
||||||
|
Unless otherwise specified, the *"name"* property of a built-in function
|
||||||
|
object has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*,
|
||||||
|
[[Configurable]]: *true* }.
|
||||||
|
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [json-parse-with-source]
|
features: [json-parse-with-source]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
|
||||||
JSON.isRawJSON.name, 'isRawJSON',
|
|
||||||
'The value of JSON.isRawJSON.name is "isRawJSON"'
|
|
||||||
);
|
|
||||||
|
|
||||||
verifyProperty(JSON.isRawJSON, 'name', {
|
verifyProperty(JSON.isRawJSON, 'name', {
|
||||||
|
value: "isRawJSON",
|
||||||
enumerable: false,
|
enumerable: false,
|
||||||
writable: false,
|
writable: false,
|
||||||
configurable: true
|
configurable: true
|
||||||
|
@ -2,16 +2,19 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
esid: sec-json.rawjson
|
esid: sec-built-in-function-objects
|
||||||
description: >
|
description: >
|
||||||
JSON.rawJSON.length value and descriptor.
|
JSON.rawJSON.length value and descriptor.
|
||||||
info: |
|
info: |
|
||||||
JSON.rawJSON ( text )
|
Every built-in function object, including constructors, has a *"length"*
|
||||||
|
property whose value is a non-negative integral Number. Unless otherwise
|
||||||
|
specified, this value is the number of required parameters shown in the
|
||||||
|
subclause heading for the function description. Optional parameters and rest
|
||||||
|
parameters are not included in the parameter count.
|
||||||
|
|
||||||
18 ECMAScript Standard Built-in Objects
|
Unless otherwise specified, the *"length"* property of a built-in function
|
||||||
Every other data property described in clauses 19 through 28 and in Annex B.2
|
object has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*,
|
||||||
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
[[Configurable]]: *true* }.
|
||||||
[[Configurable]]: true } unless otherwise specified.
|
|
||||||
|
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [json-parse-with-source]
|
features: [json-parse-with-source]
|
||||||
|
@ -2,27 +2,38 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
esid: sec-json.rawjson
|
esid: sec-built-in-function-objects
|
||||||
description: >
|
description: >
|
||||||
JSON.rawJSON.name value and descriptor.
|
JSON.rawJSON.name value and descriptor.
|
||||||
info: |
|
info: |
|
||||||
JSON.rawJSON ( text )
|
Every built-in function object, including constructors, has a *"name"*
|
||||||
|
property whose value is a String. Unless otherwise specified, this value is
|
||||||
|
the name that is given to the function in this specification. Functions that
|
||||||
|
are identified as anonymous functions use the empty String as the value of
|
||||||
|
the *"name"* property. For functions that are specified as properties of
|
||||||
|
objects, the name value is the property name string used to access the
|
||||||
|
function. Functions that are specified as get or set accessor functions of
|
||||||
|
built-in properties have *"get"* or *"set"* (respectively) passed to the
|
||||||
|
prefix parameter when calling CreateBuiltinFunction.
|
||||||
|
|
||||||
18 ECMAScript Standard Built-in Objects
|
The value of the *"name"* property is explicitly specified for each built-in
|
||||||
Every other data property described in clauses 19 through 28 and in Annex B.2
|
function whose property key is a Symbol value. If such an explicitly
|
||||||
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
|
specified value starts with the prefix *"get "* or *"set "* and the function
|
||||||
[[Configurable]]: true } unless otherwise specified.
|
for which it is specified is a get or set accessor function of a built-in
|
||||||
|
property, the value without the prefix is passed to the name parameter, and
|
||||||
|
the value *"get"* or *"set"* (respectively) is passed to the prefix
|
||||||
|
parameter when calling CreateBuiltinFunction.
|
||||||
|
|
||||||
|
Unless otherwise specified, the *"name"* property of a built-in function
|
||||||
|
object has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*,
|
||||||
|
[[Configurable]]: *true* }.
|
||||||
|
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [json-parse-with-source]
|
features: [json-parse-with-source]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(
|
|
||||||
JSON.rawJSON.name, 'rawJSON',
|
|
||||||
'The value of JSON.rawJSON.name is "rawJSON"'
|
|
||||||
);
|
|
||||||
|
|
||||||
verifyProperty(JSON.rawJSON, 'name', {
|
verifyProperty(JSON.rawJSON, 'name', {
|
||||||
|
value: "rawJSON",
|
||||||
enumerable: false,
|
enumerable: false,
|
||||||
writable: false,
|
writable: false,
|
||||||
configurable: true
|
configurable: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user