feat: arbitrary-precision BigInt via num-bigint (literals, arithmetic, toString, asIntN/asUintN)

This commit is contained in:
爱特每羊队
2026-08-12 03:15:18 +08:00
parent ca293a57e9
commit f3c37911f7
18 changed files with 227 additions and 212 deletions
+1
View File
@@ -8,3 +8,4 @@ description = "OxideJS - Shared bytecode protocol and compiled module ABI"
[dependencies]
oxide_log = { path = "../oxide_log" }
num-bigint = "0.4"
+1 -1
View File
@@ -16,7 +16,7 @@ use crate::opcode::{self, OpCode};
pub enum Constant {
Number(f64),
Int(i32),
BigInt(i128),
BigInt(num_bigint::BigInt),
String(String),
Boolean(bool),
Null,