| 1 |
// Copyright 2015 Microsoft Corporation. All rights reserved. |
| 2 |
// This code is governed by the license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
description: > |
| 6 |
Number,Boolean,Symbol cannot have own enumerable properties, |
| 7 |
So cannot be Assigned.Here result should be original object. |
| 8 |
esid: sec-object.assign |
| 9 |
features: [Symbol] |
| 10 |
---*/ |
| 11 |
|
| 12 |
var target = new Object(); |
| 13 |
var result = Object.assign(target, 123, true, Symbol('foo')); |
| 14 |
|
| 15 |
assert.sameValue(result, target, "Numbers, booleans, and symbols cannot have wrappers with own enumerable properties."); |