tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Target-Boolean.js (556B)


      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: >
      6  Test the first argument(target) of Object.Assign(target,...sources),
      7  if target is Boolean,the return value should be a new object whose value is target.
      8 es6id:  19.1.2.1.1
      9 ---*/
     10 
     11 var result = Object.assign(true, {
     12  a: 1
     13 });
     14 assert.sameValue(typeof result, "object", "Return value should be an object.");
     15 assert.sameValue(result.valueOf(), true, "Return value should be true.");
     16 
     17 reportCompare(0, 0);