1 // Copyright 2015 Microsoft Corporation. All rights reserved.
2 // This code is governed by the license found in the LICENSE file.
6 Test the first argument(target) of Object.Assign(target,...sources),
7 if target is Object,its properties will be the properties of new object.
14 var result = Object.assign(target, {
18 assert.sameValue(result.foo, 1, "The value should be {foo: 1}.");
19 assert.sameValue(result.a, 2, "The value should be {a: 2}.");