refactor(starmelon): update v8 dependecy

This commit is contained in:
YetAnotherMinion 2023-01-19 17:23:38 +00:00 committed by nobody
commit 95e21129a8
Signed by: GrocerPublishAgent
GPG key ID: D460CD54A9E3AB86
9 changed files with 894 additions and 338 deletions

View file

@ -1,6 +1,6 @@
use crate::exec::astrid_pages::OutputType;
use genco_extra::elm::Tokens;
use genco::tokens::quoted;
use genco_extra::elm::Tokens;
use serde::{Deserialize, Serialize};
// I manually made this derived deserialize implementation match the elm json encoder output. The

View file

@ -205,26 +205,26 @@ mod runtime {
let options = WorkerOptions {
bootstrap: BootstrapOptions {
args: vec![],
apply_source_maps: false,
cpu_count: 1,
debug_flag: false,
enable_testing_features: false,
is_tty: false,
location: None,
no_color: false,
is_tty: false,
runtime_version: "0.50.0".to_string(),
ts_version: "2.0.0".to_string(),
unstable: false,
user_agent: "starmelon".to_string(),
},
extensions: extensions,
unsafely_ignore_certificate_errors: None,
root_cert_store: None,
user_agent: "hello_runtime".to_string(),
seed: None,
module_loader,
create_web_worker_cb,
web_worker_preload_module_cb,
js_error_create_fn: None,
format_js_error_fn: None,
source_map_getter: None,
maybe_inspector_server: None,
should_break_on_first_statement: false,
get_error_class_fn: Some(&get_error_class_name),
@ -233,6 +233,7 @@ mod runtime {
broadcast_channel: InMemoryBroadcastChannel::default(),
shared_array_buffer_store: None,
compiled_wasm_module_store: None,
stdio: deno_runtime::ops::io::Stdio::default(),
};
let main_module = deno_core::resolve_path(path_str)?;
@ -311,7 +312,7 @@ mod runtime {
//let code = if let Some((ref source, _)) = is_data_uri {
// source.to_string()
//} else {
let code = self.0.to_string();
let code: Box<[u8]> = self.0.as_bytes().into();
//};
async move {
//if is_data_uri.is_none() && module_specifier.to_string() != SPECIFIER {