| assign-descriptor.js |
---
description: Testing descriptor property of Object.assign
includes:
- propertyHelper.js
es6id: 19.1.2.1
--- |
362 |
- |
| assign-length.js |
---
description: The length property of the assign method should be 2
es6id: 19.1.2.1
info: |
The length property of the assign method is 2.
ES6 Section 17:
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js]
--- |
758 |
- |
| invoked-as-ctor.js |
---
es6id: 19.1.2.1
description: Invoked as a constructor
info: |
ES6 Section 9.3:
Built-in function objects that are not identified as constructors do not
implement the [[Construct]] internal method unless otherwise specified in
the description of a particular function.
--- |
503 |
- |
| name.js |
---
es6id: 19.1.2.1
description: '`name` property'
info: |
ES6 Section 17:
Every built-in Function object, including constructors, that is not
identified as an anonymous function 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.
[...]
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js]
--- |
969 |
- |
| ObjectOverride-sameproperty.js |
---
description: >
Object properties are assigned to target in ascending index order,
i.e. a later assignment to the same property overrides an earlier assignment.
es6id: 19.1.2.1
--- |
473 |
- |
| OnlyOneArgument.js |
---
description: >
test Object.Assign(target,...sources),only one argument was passed,
return ToObject(target)
es6id: 19.1.2.1.3
--- |
440 |
- |
| Override-notstringtarget.js |
---
description: >
Test override of Object.Assign(target,...sources),
Every string from sources will be wrapped to objects, and override from the first letter(result[0]) all the time
es6id: 19.1.2.1
--- |
802 |
- |
| Override.js |
---
description: Test Object.Assign(target,...sources).
esid: sec-object.assign
--- |
1295 |
- |
| source-get-attr-error.js |
---
es6id: 19.1.2.1
description: Errors thrown during retrieval of source object attributes
info: |
[...]
5. For each element nextSource of sources, in ascending index order,
[...]
c. Repeat for each element nextKey of keys in List order,
[...]
iii. if desc is not undefined and desc.[[Enumerable]] is true, then
1. Let propValue be Get(from, nextKey).
2. ReturnIfAbrupt(propValue).
--- |
726 |
- |
| source-non-enum.js |
---
es6id: 19.1.2.1
description: Does not assign non-enumerable source properties
info: |
[...]
5. For each element nextSource of sources, in ascending index order,
c. Repeat for each element nextKey of keys in List order,
i. Let desc be from.[[GetOwnProperty]](nextKey).
ii. ReturnIfAbrupt(desc).
iii. if desc is not undefined and desc.[[Enumerable]] is true, then
--- |
817 |
- |
| Source-Null-Undefined.js |
---
description: null and undefined source should be ignored,result should be original object.
esid: sec-object.assign
--- |
448 |
- |
| Source-Number-Boolen-Symbol.js |
---
description: >
Number,Boolean,Symbol cannot have own enumerable properties,
So cannot be Assigned.Here result should be original object.
esid: sec-object.assign
features: [Symbol]
--- |
538 |
- |
| source-own-prop-desc-missing.js |
---
es6id: 19.1.2.1
description: Invoked with a source which does not have a descriptor for an own property
info: |
[...]
5. For each element nextSource of sources, in ascending index order,
[...]
c. Repeat for each element nextKey of keys in List order,
i. Let desc be from.[[GetOwnProperty]](nextKey).
ii. ReturnIfAbrupt(desc).
iii. if desc is not undefined and desc.[[Enumerable]] is true, then
features: [Proxy]
--- |
1075 |
- |
| source-own-prop-error.js |
---
es6id: 19.1.2.1
description: Invoked with a source whose own property descriptor cannot be retrieved
info: |
[...]
5. For each element nextSource of sources, in ascending index order,
[...]
c. Repeat for each element nextKey of keys in List order,
i. Let desc be from.[[GetOwnProperty]](nextKey).
ii. ReturnIfAbrupt(desc).
features: [Proxy]
--- |
731 |
- |
| source-own-prop-keys-error.js |
---
es6id: 19.1.2.1
description: Invoked with a source whose own property keys cannot be retrieved
info: |
[...]
5. For each element nextSource of sources, in ascending index order,
a. If nextSource is undefined or null, let keys be an empty List.
b. Else,
i. Let from be ToObject(nextSource).
ii. ReturnIfAbrupt(from).
iii. Let keys be from.[[OwnPropertyKeys]]().
iv. ReturnIfAbrupt(keys).
features: [Proxy]
--- |
784 |
- |
| Source-String.js |
---
description: Test Object.Assign(target,...sources), string have own enumerable properties, so it can be wrapped to objects.
esid: sec-object.assign
--- |
578 |
- |
| Target-Boolean.js |
---
description: >
Test the first argument(target) of Object.Assign(target,...sources),
if target is Boolean,the return value should be a new object whose value is target.
es6id: 19.1.2.1.1
--- |
534 |
- |
| Target-Null.js |
---
description: >
Test the first argument(target) of Object.Assign(target,...sources),
if target is null,Should Throw a TypeError exception.
es6id: 19.1.2.1.1
--- |
385 |
- |
| Target-Number.js |
---
description: >
Test the first argument(target) of Object.Assign(target,...sources),
if target is Number,the return value should be a new object whose value is target.
es6id: 19.1.2.1.1
--- |
524 |
- |
| Target-Object.js |
---
description: >
Test the first argument(target) of Object.Assign(target,...sources),
if target is Object,its properties will be the properties of new object.
es6id: 19.1.2.1.1
--- |
527 |
- |
| target-set-not-writable.js |
---
es6id: 19.1.2.1
description: Errors thrown during definition of target object attributes
info: |
[...]
5. For each element nextSource of sources, in ascending index order,
[...]
c. Repeat for each element nextKey of keys in List order,
[...]
iii. if desc is not undefined and desc.[[Enumerable]] is true, then
[...]
3. Let status be Set(to, nextKey, propValue, true).
4. ReturnIfAbrupt(status).
--- |
778 |
- |
| target-set-user-error.js |
---
es6id: 19.1.2.1
description: Errors thrown during definition of target object attributes
info: |
[...]
5. For each element nextSource of sources, in ascending index order,
[...]
c. Repeat for each element nextKey of keys in List order,
[...]
iii. if desc is not undefined and desc.[[Enumerable]] is true, then
[...]
3. Let status be Set(to, nextKey, propValue, true).
4. ReturnIfAbrupt(status).
--- |
818 |
- |
| Target-String.js |
---
description: >
Test the first argument(target) of Object.Assign(target,...sources),
if target is String,the return value should be a new object whose value is target.
es6id: 19.1.2.1.1
--- |
539 |
- |
| Target-Symbol.js |
---
description: >
Test the first argument(target) of Object.Assign(target,...sources),
if target is Symbol,the return value should be a new Symbol object whose [[SymbolData]] value is target.
es6id: 19.1.2.1.1
features: [Symbol]
--- |
630 |
- |
| Target-Undefined.js |
---
description: >
Test the first argument(target) of Object.Assign(target,...sources),
if target is Undefined,Should Throw a TypeError exception.
es6id: 19.1.2.1.1
--- |
395 |
- |