1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

chore: upgrade rusty_v8 to 0.74.0 (#19633)

This commit is contained in:
Bartek Iwańczuk 2023-06-29 23:21:09 +02:00 committed by GitHub
parent 55362452a8
commit d98be23023
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 4 deletions

4
Cargo.lock generated
View file

@ -5854,9 +5854,9 @@ dependencies = [
[[package]]
name = "v8"
version = "0.73.0"
version = "0.74.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1bd3f04ba5065795dae6e3db668ff0b628920fbd2e39c1755e9b62d93660c3c"
checksum = "9169f27f3ac2bcbaed828e0d463a335faaa1b2e802d8e6b5066fb9c0d657fe73"
dependencies = [
"bitflags 1.3.2",
"fslock",

View file

@ -41,7 +41,7 @@ license = "MIT"
repository = "https://github.com/denoland/deno"
[workspace.dependencies]
v8 = { version = "0.73.0", default-features = false }
v8 = { version = "0.74.0", default-features = false }
deno_ast = { version = "0.27.0", features = ["transpiling"] }
deno_core = { version = "0.191.0", path = "./core" }

View file

@ -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);
}