tor-browser

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

string-entry-string-object-succeeds.js (376B)


      1 // Copyright (C) 2018 Kevin Gibbons. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 description: Succeeds when an entry object is a boxed string.
      6 esid: sec-object.fromentries
      7 features: [Object.fromEntries]
      8 ---*/
      9 
     10 var result = Object.fromEntries([new String('ab')]);
     11 assert.sameValue(result['a'], 'b');
     12 
     13 reportCompare(0, 0);