| getOwnPropertyDescriptor.js |
---
es6id: 26.1.7
description: >
Reflect.getOwnPropertyDescriptor is configurable, writable and not enumerable.
info: |
26.1.7 Reflect.getOwnPropertyDescriptor ( target, propertyKey )
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
--- |
577 |
- |
| length.js |
---
es6id: 26.1.7
description: >
Reflect.getOwnPropertyDescriptor.length value and property descriptor
includes: [propertyHelper.js]
--- |
608 |
- |
| name.js |
---
es6id: 26.1.7
description: >
Reflect.getOwnPropertyDescriptor.name value and property descriptor
info: |
26.1.7 Reflect.getOwnPropertyDescriptor ( target, propertyKey )
17 ECMAScript Standard Built-in Objects
includes: [propertyHelper.js]
--- |
764 |
- |
| return-abrupt-from-property-key.js |
---
es6id: 26.1.7
description: >
Return abrupt from ToPropertyKey(propertyKey)
info: |
26.1.7 Reflect.getOwnPropertyDescriptor ( target, propertyKey )
...
2. Let key be ToPropertyKey(propertyKey).
3. ReturnIfAbrupt(key).
...
--- |
546 |
- |
| return-abrupt-from-result.js |
---
es6id: 26.1.7
description: >
Return abrupt result from getting the property descriptor.
info: |
26.1.7 Reflect.getOwnPropertyDescriptor ( target, propertyKey )
...
4. Let desc be target.[[GetOwnProperty]](key).
5. ReturnIfAbrupt(desc).
...
features: [Proxy]
--- |
629 |
- |
| return-from-accessor-descriptor.js |
---
es6id: 26.1.7
description: >
Return a property descriptor object as an accessor descriptor.
info: |
26.1.7 Reflect.getOwnPropertyDescriptor ( target, propertyKey )
...
4. Let desc be target.[[GetOwnProperty]](key).
5. ReturnIfAbrupt(desc).
6. Return FromPropertyDescriptor(desc).
6.2.4.4 FromPropertyDescriptor ( Desc )
...
2. Let obj be ObjectCreate(%ObjectPrototype%).
...
4. If Desc has a [[Value]] field, then
a. Perform CreateDataProperty(obj, "value", Desc.[[Value]]).
5. If Desc has a [[Writable]] field, then
a. Perform CreateDataProperty(obj, "writable", Desc.[[Writable]]).
6. If Desc has a [[Get]] field, then
a. Perform CreateDataProperty(obj, "get", Desc.[[Get]]).
7. If Desc has a [[Set]] field, then
a. Perform CreateDataProperty(obj, "set", Desc.[[Set]])
8. If Desc has an [[Enumerable]] field, then
a. Perform CreateDataProperty(obj, "enumerable", Desc.[[Enumerable]]).
9. If Desc has a [[Configurable]] field, then
a. Perform CreateDataProperty(obj , "configurable", Desc.[[Configurable]]).
...
11. Return obj.
includes: [compareArray.js]
--- |
1701 |
- |
| return-from-data-descriptor.js |
---
es6id: 26.1.7
description: >
Return a property descriptor object as a data descriptor.
info: |
26.1.7 Reflect.getOwnPropertyDescriptor ( target, propertyKey )
...
4. Let desc be target.[[GetOwnProperty]](key).
5. ReturnIfAbrupt(desc).
6. Return FromPropertyDescriptor(desc).
includes: [compareArray.js]
--- |
826 |
- |
| symbol-property.js |
---
es6id: 26.1.7
description: >
Use a symbol value on property key.
info: |
26.1.7 Reflect.getOwnPropertyDescriptor ( target, propertyKey )
...
2. Let key be ToPropertyKey(propertyKey).
...
7.1.14 ToPropertyKey ( argument )
...
3. If Type(key) is Symbol, then
a. Return key.
...
includes: [compareArray.js]
features: [Symbol]
--- |
872 |
- |
| target-is-not-object-throws.js |
---
es6id: 26.1.7
description: >
Throws a TypeError if target is not an Object.
info: |
26.1.7 Reflect.getOwnPropertyDescriptor ( target, propertyKey )
1. If Type(target) is not Object, throw a TypeError exception.
...
--- |
734 |
- |
| target-is-symbol-throws.js |
---
es6id: 26.1.7
description: >
Throws a TypeError if target is a Symbol
info: |
26.1.7 Reflect.getOwnPropertyDescriptor ( target, propertyKey )
1. If Type(target) is not Object, throw a TypeError exception.
...
features: [Symbol]
--- |
482 |
- |
| undefined-own-property.js |
---
es6id: 26.1.7
description: >
Return undefined for an non existing own property.
info: |
26.1.7 Reflect.getOwnPropertyDescriptor ( target, propertyKey )
...
4. Let desc be target.[[GetOwnProperty]](key).
5. ReturnIfAbrupt(desc).
6. Return FromPropertyDescriptor(desc).
6.2.4.4 FromPropertyDescriptor ( Desc )
1. If Desc is undefined, return undefined.
--- |
642 |
- |
| undefined-property.js |
---
es6id: 26.1.7
description: >
Return undefined for an undefined property.
info: |
26.1.7 Reflect.getOwnPropertyDescriptor ( target, propertyKey )
...
4. Let desc be target.[[GetOwnProperty]](key).
5. ReturnIfAbrupt(desc).
6. Return FromPropertyDescriptor(desc).
6.2.4.4 FromPropertyDescriptor ( Desc )
1. If Desc is undefined, return undefined.
--- |
613 |
- |