Skip to content

Commit

Permalink
Fix accessors fast call error (#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy authored Jan 3, 2025
1 parent 0cc3790 commit 833a06e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ops/op2/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ pub(crate) fn generate_op2(
}
}
None => {
if config.fast || config.getter || config.setter {
if config.fast {
return Err(Op2Error::ShouldNotBeFast("fast"));
}
if config.nofast {
Expand Down
6 changes: 6 additions & 0 deletions testing/checkin/runner/ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ impl TestObjectWrap {
tokio::time::sleep(std::time::Duration::from_millis(ms as u64)).await;
Ok(())
}

#[getter]
#[string]
fn with_slow_getter(&self) -> String {
String::from("getter")
}
}

pub struct DOMPoint {
Expand Down

0 comments on commit 833a06e

Please sign in to comment.