Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / assign / Target-Null.js
blobffdd7fdabb5e0ae07ac2ce8a27af9a95d05b8e5c
1 // Copyright 2015 Microsoft Corporation. All rights reserved.
2 // This code is governed by the license found in the LICENSE file.
4 /*---
5 description: >
6   Test the first argument(target) of Object.Assign(target,...sources),
7   if target is null,Should Throw a TypeError exception.
8 es6id:  19.1.2.1.1
9 ---*/
11 assert.throws(TypeError, function() {
12   Object.assign(null, {
13     a: 1
14   });
15 });
17 reportCompare(0, 0);