1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 21:50:00 -05:00

fix: bigint

This commit is contained in:
Marvin Hagemeister 2025-01-08 19:45:08 +01:00
parent 937295af6a
commit ba4c098237

View file

@ -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);