tor-browser

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

symbol-coercion.js (381B)


      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 esid: sec-toboolean
      5 description: >
      6    Boolean coercion operations on Symbols
      7 features: [Symbol]
      8 ---*/
      9 var sym = Symbol();
     10 
     11 assert.sameValue(Boolean(sym).valueOf(), true, "`Boolean(sym).valueOf()` returns `true`");
     12 
     13 reportCompare(0, 0);