mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
398 B
TypeScript
26 lines
398 B
TypeScript
//// [tests/cases/conformance/es2020/constructBigint.ts] ////
|
|
|
|
//// [constructBigint.ts]
|
|
BigInt(1);
|
|
BigInt(1n);
|
|
BigInt("0");
|
|
BigInt(false);
|
|
|
|
BigInt(Symbol());
|
|
BigInt({ e: 1, m: 1 })
|
|
BigInt(null);
|
|
BigInt(undefined)
|
|
|
|
|
|
|
|
//// [constructBigint.js]
|
|
"use strict";
|
|
BigInt(1);
|
|
BigInt(1n);
|
|
BigInt("0");
|
|
BigInt(false);
|
|
BigInt(Symbol());
|
|
BigInt({ e: 1, m: 1 });
|
|
BigInt(null);
|
|
BigInt(undefined);
|