Debian Codegraph @

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

raw
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: null and undefined source should be ignored,result should be original object.
6 esid: sec-object.assign
7 ---*/
8
9 var target = new Object();
10 var result = Object.assign(target, undefined, null);
11
12 assert.sameValue(result, target, 'The value of result is expected to equal the value of target');
13
14 reportCompare(0, 0);