tor-browser

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

15.2.3.3-4-214.js (739B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 es5id: 15.2.3.3-4-214
      6 description: >
      7    Object.getOwnPropertyDescriptor returns accessor desc for
      8    accessors on built-ins (RegExp.prototype.ignoreCase)
      9 ---*/
     10 
     11 var desc = Object.getOwnPropertyDescriptor(RegExp.prototype, "ignoreCase");
     12 
     13 assert.sameValue(desc.hasOwnProperty('writable'), false, 'desc.hasOwnProperty("writable")');
     14 assert.sameValue(desc.enumerable, false, 'desc.enumerable');
     15 assert.sameValue(desc.configurable, true, 'desc.configurable');
     16 assert.sameValue(typeof desc.get, 'function', 'typeof desc.get');
     17 assert.sameValue(desc.set, undefined, 'desc.set');
     18 
     19 reportCompare(0, 0);