mirror of
https://github.com/denoland/deno.git
synced 2025-09-12 05:36:20 +00:00
chore: upgrade to Rust 1.57.0 (#12968)
This commit is contained in:
parent
72e9720e91
commit
c59f90d01f
11 changed files with 35 additions and 29 deletions
|
@ -34,7 +34,10 @@ fn main() {
|
|||
|
||||
let v = exec(scope, "({a: 1, b: 3, c: 'ignored'})");
|
||||
let mop: MathOp = serde_v8::from_v8(scope, v).unwrap();
|
||||
println!("mop = {:?}", mop);
|
||||
println!(
|
||||
"mop = {{ a: {}, b: {}, operator: {:?} }}",
|
||||
mop.a, mop.b, mop.operator
|
||||
);
|
||||
|
||||
let v = exec(scope, "[1,2,3,4,5]");
|
||||
let arr: Vec<u64> = serde_v8::from_v8(scope, v).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue