tor-browser

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

requires-argument.js (500B)


      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 esid: sec-object.fromentries
      6 description: Throws when called without an argument.
      7 info: |
      8  Object.fromEntries ( iterable )
      9 
     10  1. Perform ? RequireObjectCoercible(iterable).
     11  ...
     12 
     13 features: [Object.fromEntries]
     14 ---*/
     15 
     16 assert.sameValue(typeof Object.fromEntries, 'function');
     17 assert.throws(TypeError, function() {
     18  Object.fromEntries();
     19 });
     20 
     21 reportCompare(0, 0);