BigInt
The ES2020 BigInt arbitrary-precision integer type is not available in SSJS — the SFMC Jint engine predates ES2020, so BigInt and bigint literals are unsupported.
BigInt is not available in SSJS. The SFMC server-side JavaScript engine (Jint) predates ES2020, so the BigInt arbitrary-precision integer type is absent. typeof BigInt is "undefined", and calling BigInt(10) throws Object expected. The 10n literal syntax is also unsupported.
Status legend
| Icon | Meaning |
|---|---|
| ❌ Missing | Not available (or undefined) — no arbitrary-precision integers |
Members
| Member | ES | Status | Notes |
|---|---|---|---|
BigInt(value) |
ES2020 | ❌ Missing | typeof BigInt === "undefined"; calling it throws |
10n literal |
ES2020 | ❌ Missing | Numeric BigInt literal syntax is unsupported |
BigInt
(ES2020) — ❌ Missing. BigInt is not defined in the SFMC engine.
(typeof BigInt === "undefined"); // true
// BigInt(10); // throws "Object expected: BigInt"
All numbers in SSJS are IEEE-754 doubles, so integers beyond 2^53 − 1 (9007199254740991) lose precision. When exact large-integer arithmetic is required, keep the value as a string and perform arithmetic digit-by-digit, or offload the computation to AMPscript/a Data Extension where feasible.
10n literal
(ES2020) — ❌ Missing. The BigInt numeric literal suffix (10n) is not part of the engine’s grammar; using it is a syntax error. There is no literal form for large exact integers.