Debian Codegraph @

js/src/tests/test262/annexB/built-ins/unescape/argument_bigint.js

raw
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-unescape-string
5 description: Input is a BigInt
6 info: |
7 B.2.1.2 unescape ( string )
8
9 1. Set string to ? ToString(string).
10 ....
11 features: [BigInt]
12 ---*/
13
14 assert.sameValue(unescape(1n), '1');
15
16 assert.sameValue(unescape(-1n), '-1');
17
18 reportCompare(0, 0);