tor-browser

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

exception-not-object-coercible.js (499B)


      1 // Copyright (C) 2016 Jordan Harband. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 description: Object.getOwnPropertyDescriptors should fail if given a null or undefined value
      6 esid: sec-object.getownpropertydescriptors
      7 author: Jordan Harband
      8 ---*/
      9 
     10 assert.throws(TypeError, function() {
     11  Object.getOwnPropertyDescriptors(null);
     12 });
     13 
     14 assert.throws(TypeError, function() {
     15  Object.getOwnPropertyDescriptors(undefined);
     16 });
     17 
     18 reportCompare(0, 0);