mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-23 18:21:13 +08:00
feat: num-bigint 接入任意精度 BigInt(字面量、算术、toString、asIntN/asUintN)
This commit is contained in:
@@ -8,3 +8,4 @@ description = "OxideJS - Shared bytecode protocol and compiled module ABI"
|
||||
|
||||
[dependencies]
|
||||
oxide_log = { path = "../oxide_log" }
|
||||
num-bigint = "0.4"
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user