mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 13:00:36 -05:00
fix: bigint
This commit is contained in:
parent
937295af6a
commit
ba4c098237
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue