test262/test/built-ins/Object/assign/Source-Null-Undefined.js

13 lines
437 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.
/*---
description: null and undefined source should be ignored,result should be original object.
2018-01-10 23:33:03 +01:00
esid: sec-object.assign
2015-06-18 09:23:15 +02:00
---*/
var target = new Object();
var result = Object.assign(target, undefined, null);
2015-06-18 09:23:15 +02:00
assert.sameValue(result, target, 'The value of result is expected to equal the value of target');