tor-browser

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

argument_bigint.js (393B)


      1 // Copyright (C) 2020 Qu Xing. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 esid: sec-escape-string
      5 description: Input is a BigInt
      6 info: |
      7    B.2.1.1 escape ( string )
      8 
      9    1. Let string be ? ToString(string).
     10    ...
     11 features: [BigInt]
     12 ---*/
     13 
     14 assert.sameValue(escape(1n), '1');
     15 
     16 assert.sameValue(escape(-1n), '-1');
     17 
     18 reportCompare(0, 0);