summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/intl402/BigInt/prototype/toLocaleString/taint-Intl-NumberFormat.js
blob: f918e5537c77e55a2b65f69ca784620deb63c83a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright 2013 Mozilla Corporation. All rights reserved.
// Copyright 2019 Igalia S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-bigint.prototype.tolocalestring
description: >
    Tests that Number.prototype.toLocaleString uses the standard
    built-in Intl.NumberFormat constructor.
includes: [testIntl.js]
features: [BigInt]
---*/

taintDataProperty(Intl, "NumberFormat");
0n.toLocaleString();

reportCompare(0, 0);