diff --git a/crates/napi/src/bindgen_runtime/js_values/bigint.rs b/crates/napi/src/bindgen_runtime/js_values/bigint.rs index 3149c2e9..cf96a6c9 100644 --- a/crates/napi/src/bindgen_runtime/js_values/bigint.rs +++ b/crates/napi/src/bindgen_runtime/js_values/bigint.rs @@ -208,3 +208,12 @@ impl ToNapiValue for isize { Ok(raw_value) } } + +impl From for BigInt { + fn from(val: u64) -> Self { + BigInt { + sign_bit: false, + words: vec![val], + } + } +}