summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/annexB/built-ins/escape/argument_bigint.js
blob: 20a0340cce1fce260026e36a318e7851b7e569fe (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-escape-string
description: Input is a BigInt
info: |
    B.2.1.1 escape ( string )

    1. Let string be ? ToString(string).
    ...
features: [BigInt]
---*/

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

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

reportCompare(0, 0);