From ba4c098237bd0fb8d0617d8bd3f36c5ac643be66 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Wed, 8 Jan 2025 19:45:08 +0100 Subject: [PATCH] fix: bigint --- cli/js/40_lint.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/js/40_lint.js b/cli/js/40_lint.js index 98220e283f..1439774891 100644 --- a/cli/js/40_lint.js +++ b/cli/js/40_lint.js @@ -590,6 +590,9 @@ function readProperty(ctx, offset, parseNode) { } else if (kind === PropFlags.Number) { const v = readU32(buf, offset); return Number(getString(ctx.strTable, v)); + } else if (kind === PropFlags.BigInt) { + const v = readU32(buf, offset); + return BigInt(getString(ctx.strTable, v)); } else if (kind === PropFlags.Regex) { const v = readU32(buf, offset); return readRegex(ctx.strTable, v);