2015-06-18 09:23:15 +02:00
|
|
|
// Copyright 2015 Microsoft Corporation. All rights reserved.
|
|
|
|
// This code is governed by the license found in the LICENSE file.
|
|
|
|
|
2015-06-28 07:35:17 +02:00
|
|
|
/*---
|
2018-03-06 20:31:13 +01:00
|
|
|
description: >
|
|
|
|
Number,Boolean,Symbol cannot have own enumerable properties,
|
|
|
|
So cannot be Assigned.Here result should be original object.
|
2018-01-10 23:33:03 +01:00
|
|
|
esid: sec-object.assign
|
2017-09-07 21:06:13 +02:00
|
|
|
features: [Symbol]
|
2015-06-28 07:35:17 +02:00
|
|
|
---*/
|
2015-06-18 09:23:15 +02:00
|
|
|
|
|
|
|
var target = new Object();
|
2018-02-15 21:33:45 +01:00
|
|
|
var result = Object.assign(target, 123, true, Symbol('foo'));
|
2015-06-18 09:23:15 +02:00
|
|
|
|
2021-08-12 22:28:19 +02:00
|
|
|
assert.sameValue(result, target, 'The value of result is expected to equal the value of target');
|