mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Before:
> Object(7n)
BigInt {}
After:
> Object(7n)
[BigInt: 7n]
PR-URL: https://github.com/nodejs/node/pull/19341
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
13 lines
295 B
JavaScript
13 lines
295 B
JavaScript
'use strict';
|
|
|
|
// Flags: --harmony-bigint
|
|
|
|
require('../common');
|
|
const assert = require('assert');
|
|
|
|
const { inspect } = require('util');
|
|
|
|
assert.strictEqual(inspect(1n), '1n');
|
|
assert.strictEqual(inspect(Object(-1n)), '[BigInt: -1n]');
|
|
assert.strictEqual(inspect(Object(13n)), '[BigInt: 13n]');
|