test262/test/built-ins/Object/assign/Source-Number-Boolen-Symbol.js

16 lines
515 B
JavaScript
Raw Normal View History

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.
/*---
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-18 09:23:15 +02:00
var target = new Object();
var result = Object.assign(target, 123, true, Symbol('foo'));
2015-06-18 09:23:15 +02:00
assert.sameValue(result, target, 'The value of result is expected to equal the value of target');