1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
5 description: Does not assign non-enumerable source properties
8 5. For each element nextSource of sources, in ascending index order,
9 c. Repeat for each element nextKey of keys in List order,
10 i. Let desc be from.[[GetOwnProperty]](nextKey).
11 ii. ReturnIfAbrupt(desc).
12 iii. if desc is not undefined and desc.[[Enumerable]] is true, then
16 var source = Object.defineProperty({}, 'attr', {
22 result = Object.assign(target, source);
25 !Object.prototype.hasOwnProperty.call(target, 'attr'),
26 "Non-enumerable property 'attr' does not get copied to target"
28 assert.sameValue(result, target);