Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Jan 6, 2025
1 parent 894eff1 commit 467b0d4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@ pub mod callsite_fns {
fn to_string_inner<'e>(
scope: &mut v8::HandleScope<'e>,
this: v8::Local<'e, v8::Object>,
orig: v8::Local<'e, Object>,
orig: v8::Local<'e, v8::Object>,
orig_to_string_v8: v8::Local<'e, v8::String>,
) -> Option<v8::Local<'e, v8::String>> {
let orig_to_string = serde_v8::to_utf8(orig_to_string_v8, scope);
Expand Down
4 changes: 3 additions & 1 deletion core/webidl.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// Copyright 2018-2025 the Deno authors. MIT license.

use deno_error::JsError;
use indexmap::IndexMap;
use std::borrow::Cow;
use v8::HandleScope;
use v8::Local;
use v8::Value;

#[derive(Debug)]
#[derive(Debug, JsError)]
#[class(type)]
pub struct WebIdlError {
pub prefix: Cow<'static, str>,
pub context: Cow<'static, str>,
Expand Down
2 changes: 1 addition & 1 deletion ops/op2/dispatch_slow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ pub fn from_arg(
syn::parse_str::<syn::Type>(ty).expect("Failed to reparse state type");
let scope = scope.clone();
let err = format_ident!("{}_err", arg_ident);
let throw_exception = throw_type_error_string(generator_state, &err)?;
let throw_exception = throw_type_error_string(generator_state, &err);
let prefix = get_prefix(generator_state);
let context = format!("Argument {}", index + 1);

Expand Down
3 changes: 2 additions & 1 deletion testing/checkin/runner/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
use std::cell::RefCell;
use std::rc::Rc;

use deno_core::error::OpError;
use deno_core::op2;
use deno_core::stats::RuntimeActivityDiff;
use deno_core::stats::RuntimeActivitySnapshot;
Expand Down Expand Up @@ -97,7 +98,7 @@ impl TestObjectWrap {
fn with_rename(&self) {}

#[async_method]
async fn with_async_fn(&self, #[smi] ms: u32) -> Result<(), AnyError> {
async fn with_async_fn(&self, #[smi] ms: u32) -> Result<(), OpError> {
tokio::time::sleep(std::time::Duration::from_millis(ms as u64)).await;
Ok(())
}
Expand Down

0 comments on commit 467b0d4

Please sign in to comment.