summaryrefslogtreecommitdiff
path: root/core/ops.rs
diff options
context:
space:
mode:
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);
}