tor-browser

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

10.6-13-a-1.js (682B)


      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: 10.6-13-a-1
      6 description: >
      7    In non-strict mode, arguments object should have its own 'callee'
      8    property defined (Step 13.a)
      9 includes: [propertyHelper.js]
     10 flags: [noStrict]
     11 ---*/
     12 
     13 Object.defineProperty(Object.prototype, "callee", {
     14    value: 1,
     15    writable: false,
     16    configurable: true
     17 });
     18 
     19 var argObj = (function () { return arguments })();
     20 
     21 assert.sameValue(typeof argObj.callee, "function");
     22 
     23 verifyProperty(argObj, "callee", {
     24    writable: true,
     25    enumerable: false,
     26    configurable: true,
     27 });
     28 
     29 reportCompare(0, 0);