tor-browser

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

symbol-conditional-evaluation.js (394B)


      1 // Copyright (C) 2013 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.12.3
      5 description: >
      6    Conditional Symbol evaluation
      7 features: [Symbol]
      8 ---*/
      9 var sym = Symbol();
     10 
     11 assert.sameValue(sym ? 1 : 2, 1, "`sym ? 1 : 2` is `1`");
     12 assert.sameValue(!sym ? 1 : 2, 2, "`!sym ? 1 : 2` is `2`");
     13 
     14 reportCompare(0, 0);