summaryrefslogtreecommitdiff
path: root/core/ops.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-06-29 23:21:09 +0200
committerGitHub <noreply@github.com>2023-06-29 23:21:09 +0200
commitd98be230230ab93602d1f48ea0bdf9ddc6b0302d (patch)
tree4ca8d2728415bbe4446acc83dc2d4e16adfce951 /core/ops.rs
parent55362452a8eb6abaf74d704cb4333dfc1f0cfe58 (diff)
chore: upgrade rusty_v8 to 0.74.0 (#19633)
Diffstat (limited to 'core/ops.rs')
-rw-r--r--core/ops.rs10
1 files changed, 9 insertions, 1 deletions
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);
}