tor-browser

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

verifyProperty-arguments.js (531B)


      1 // Copyright (C) 2017 Leo Balter. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 description: >
      6  verifyProperty should receive at least 3 arguments: obj, name, and descriptor
      7 includes: [propertyHelper.js]
      8 ---*/
      9 assert.throws(Test262Error, () => {
     10  verifyProperty();
     11 }, "0 arguments");
     12 
     13 assert.throws(Test262Error, () => {
     14  verifyProperty(Object);
     15 }, "1 argument");
     16 
     17 assert.throws(Test262Error, () => {
     18  verifyProperty(Object, 'foo');
     19 }, "2 arguments");
     20 
     21 reportCompare(0, 0);