tor-browser

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

yield-non-strict-access.js (383B)


      1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es6id: 12.2.5
      5 description: >
      6    In non-strict mode, yield is a valid Identifier.
      7 flags: [noStrict]
      8 ---*/
      9 var yield = 1;
     10 var object = {yield};
     11 
     12 assert.sameValue(object.yield, 1, "The value of `object.yield` is `1`");
     13 
     14 reportCompare(0, 0);