Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / assign / OnlyOneArgument.js
blob3fe6d288f2c6066a416c515b29fcf18df585f991
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 Object.Assign(target,...sources),only one argument was passed,
7   return ToObject(target)
8 es6id:  19.1.2.1.3
9 ---*/
11 var target = "a";
12 var result = Object.assign(target);
14 assert.sameValue(typeof result, "object");
15 assert.sameValue(result.valueOf(), "a", "The value should be 'a'.");
17 reportCompare(0, 0);