swc/crates/swc_ecma_parser/tests/tsc/constructBigint.ts

14 lines
178 B
TypeScript
Raw Normal View History

// @target: esnext
// @lib: esnext
// @strict: true
BigInt(1);
BigInt(1n);
BigInt("0");
BigInt(false);
BigInt(Symbol());
BigInt({ e: 1, m: 1 })
BigInt(null);
BigInt(undefined)