Source-Number-Boolen-Symbol.js (537B)
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, 'The value of result is expected to equal the value of target'); 16 17 reportCompare(0, 0);