From d98be230230ab93602d1f48ea0bdf9ddc6b0302d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 29 Jun 2023 23:21:09 +0200 Subject: chore: upgrade rusty_v8 to 0.74.0 (#19633) --- core/ops.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/ops.rs b/core/ops.rs index 361fc3cb7..7d4bc1e7d 100644 --- a/core/ops.rs +++ b/core/ops.rs @@ -23,6 +23,7 @@ use std::rc::Weak; use std::sync::Arc; use v8::fast_api::CFunctionInfo; use v8::fast_api::CTypeInfo; +use v8::fast_api::Int64Representation; pub type PromiseId = i32; pub type OpId = u16; @@ -139,7 +140,14 @@ impl OpCtx { // SAFETY: all arguments are coming from the trait and they have // static lifetime let c_fn = unsafe { - CFunctionInfo::new(args.as_ptr(), fast_fn.args.len(), ret.as_ptr()) + CFunctionInfo::new( + args.as_ptr(), + fast_fn.args.len(), + ret.as_ptr(), + // TODO(bartlomieju): in the future we might want to change it + // to use BigInt representation. + Int64Representation::Number, + ) }; fast_fn_c_info = Some(c_fn); } -- cgit v1.2.3