summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2021-01-18 20:18:42 -0500
committerBert Belder <bertbelder@gmail.com>2021-01-19 18:40:30 -0800
commit9312d48e69f3edc951144c6a5e5e3e2cde0d0db9 (patch)
treed06b52b40e8a031d6371cd8568387ba54f527038 /core
parent4bf98ab239f1e377b4023b475c1aa1ff9bfc939e (diff)
upgrade: rusty_v8 0.16.0, v8 8.9.255.3 (#9180)
Diffstat (limited to 'core')
-rw-r--r--core/Cargo.toml2
-rw-r--r--core/bindings.rs44
2 files changed, 17 insertions, 29 deletions
diff --git a/core/Cargo.toml b/core/Cargo.toml
index e0486e4fe..0f9b86a82 100644
--- a/core/Cargo.toml
+++ b/core/Cargo.toml
@@ -20,7 +20,7 @@ lazy_static = "1.4.0"
libc = "0.2.82"
log = "0.4.13"
pin-project = "1.0.4"
-rusty_v8 = "0.15.0"
+rusty_v8 = "0.16.0"
serde = { version = "1.0.116", features = ["derive"] }
serde_json = { version = "1.0.61", features = ["preserve_order"] }
smallvec = "1.6.1"
diff --git a/core/bindings.rs b/core/bindings.rs
index 20725c0fc..8a41b6027 100644
--- a/core/bindings.rs
+++ b/core/bindings.rs
@@ -59,24 +59,18 @@ pub fn script_origin<'a>(
s: &mut v8::HandleScope<'a>,
resource_name: v8::Local<'a, v8::String>,
) -> v8::ScriptOrigin<'a> {
- let resource_line_offset = v8::Integer::new(s, 0);
- let resource_column_offset = v8::Integer::new(s, 0);
- let resource_is_shared_cross_origin = v8::Boolean::new(s, false);
- let script_id = v8::Integer::new(s, 123);
let source_map_url = v8::String::new(s, "").unwrap();
- let resource_is_opaque = v8::Boolean::new(s, true);
- let is_wasm = v8::Boolean::new(s, false);
- let is_module = v8::Boolean::new(s, false);
v8::ScriptOrigin::new(
+ s,
resource_name.into(),
- resource_line_offset,
- resource_column_offset,
- resource_is_shared_cross_origin,
- script_id,
+ 0,
+ 0,
+ false,
+ 123,
source_map_url.into(),
- resource_is_opaque,
- is_wasm,
- is_module,
+ true,
+ false,
+ false,
)
}
@@ -84,24 +78,18 @@ pub fn module_origin<'a>(
s: &mut v8::HandleScope<'a>,
resource_name: v8::Local<'a, v8::String>,
) -> v8::ScriptOrigin<'a> {
- let resource_line_offset = v8::Integer::new(s, 0);
- let resource_column_offset = v8::Integer::new(s, 0);
- let resource_is_shared_cross_origin = v8::Boolean::new(s, false);
- let script_id = v8::Integer::new(s, 123);
let source_map_url = v8::String::new(s, "").unwrap();
- let resource_is_opaque = v8::Boolean::new(s, true);
- let is_wasm = v8::Boolean::new(s, false);
- let is_module = v8::Boolean::new(s, true);
v8::ScriptOrigin::new(
+ s,
resource_name.into(),
- resource_line_offset,
- resource_column_offset,
- resource_is_shared_cross_origin,
- script_id,
+ 0,
+ 0,
+ false,
+ 123,
source_map_url.into(),
- resource_is_opaque,
- is_wasm,
- is_module,
+ true,
+ false,
+ true,
)
}