tor-browser

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

15.2.3.3-4-192.js (767B)


      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-192
      6 description: >
      7    Object.getOwnPropertyDescriptor returns data desc (all false) for
      8    properties on built-ins (String (instance).length)
      9 ---*/
     10 
     11 var s = new String("abc");
     12 var desc = Object.getOwnPropertyDescriptor(s, "length");
     13 
     14 assert.sameValue(desc.writable, false, 'desc.writable');
     15 assert.sameValue(desc.enumerable, false, 'desc.enumerable');
     16 assert.sameValue(desc.configurable, false, 'desc.configurable');
     17 assert.sameValue(desc.hasOwnProperty('get'), false, 'desc.hasOwnProperty("get")');
     18 assert.sameValue(desc.hasOwnProperty('set'), false, 'desc.hasOwnProperty("set")');
     19 
     20 reportCompare(0, 0);