tor-browser

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

get-accsr-not-first-runtime.js (736B)


      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 esid: use-strict-directive
      6 es5id: 10.1.1-27-s
      7 description: >
      8    Strict Mode - Function code of Accessor PropertyAssignment
      9    contains Use Strict Directive which appears in the middle of the
     10    block(getter)
     11 flags: [noStrict]
     12 ---*/
     13 
     14        var obj = {};
     15        Object.defineProperty(obj, "accProperty", {
     16            get: function () {
     17                test262unresolvable = null;
     18                "use strict";
     19                return 11;
     20            }
     21        });
     22 
     23 assert.sameValue(obj.accProperty, 11, 'obj.accProperty');
     24 assert.sameValue(test262unresolvable, null);
     25 
     26 reportCompare(0, 0);