Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/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, "null and undefined should be ignored, result should be original object.");