tor-browser

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

10.6-13-c-3-s-strict.js (876B)


      1 'use strict';
      2 // Copyright (c) 2012 Ecma International.  All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 es5id: 10.6-13-c-3-s
      7 description: arguments.callee is non-configurable in strict mode
      8 flags: [onlyStrict]
      9 ---*/
     10 
     11 function testcase() {
     12  var desc = Object.getOwnPropertyDescriptor(arguments,"callee");
     13 
     14  assert.sameValue(desc.configurable, false, 'desc.configurable');
     15  assert.sameValue(desc.enumerable, false, 'desc.enumerable');
     16  assert.sameValue(desc.hasOwnProperty('value'), false, 'desc.hasOwnProperty("value")');
     17  assert.sameValue(desc.hasOwnProperty('writable'), false, 'desc.hasOwnProperty("writable")');
     18  assert.sameValue(desc.hasOwnProperty('get'), true, 'desc.hasOwnProperty("get")');
     19  assert.sameValue(desc.hasOwnProperty('set'), true, 'desc.hasOwnProperty("set")');
     20 }
     21 testcase();
     22 
     23 reportCompare(0, 0);