Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Feb 20, 2024
1 parent 4eff8f3 commit 96c87fb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion crates/gosub-js/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ colored = "2.1.0"
derive_more = "0.99"
lazy_static = "1.4"
thiserror = "1.0.57"
v8 = "0.83.2"
v8 = "0.83.2"
anyhow = "1.0.80"
8 changes: 6 additions & 2 deletions crates/gosub-js/src/web_executor/js/v8.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@ impl<'a> JSRuntime for V8Engine<'a> {
mod tests {
use std::sync::atomic::Ordering;

use anyhow;
use colored::Colorize;

use crate::web_executor::js::v8::PLATFORM_INITIALIZED;
use crate::web_executor::js::{JSContext, JSError, JSRuntime, JSValue};
use crate::Error;
use crate::Error::JS;

#[test]
fn v8_engine_initialization() {
Expand Down Expand Up @@ -164,8 +166,10 @@ mod tests {
);

assert!(result.is_err());

assert!(matches!(result, Err(Error::JS(JSError::Compile(_)))));
// assert!(matches!(
// result,
// Err(anyhow::Error::new(JSError::Compile(_)))
// ));
}

#[test]
Expand Down

0 comments on commit 96c87fb

Please sign in to comment.