summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/annexB/built-ins/unescape/argument_bigint.js
blob: 00f17cb5e731877554adeb831f9277a406319cac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (C) 2020 Qu Xing. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-unescape-string
description: Input is a BigInt
info: |
    B.2.1.2 unescape ( string )

    1. Set string to ? ToString(string).
    ....
features: [BigInt]
---*/

assert.sameValue(unescape(1n), '1');

assert.sameValue(unescape(-1n), '-1');

reportCompare(0, 0);