Skip to content

Commit 833a06e

Browse files
authored
Fix accessors fast call error (#1022)
1 parent 0cc3790 commit 833a06e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ops/op2/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ pub(crate) fn generate_op2(
254254
}
255255
}
256256
None => {
257-
if config.fast || config.getter || config.setter {
257+
if config.fast {
258258
return Err(Op2Error::ShouldNotBeFast("fast"));
259259
}
260260
if config.nofast {

testing/checkin/runner/ops.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ impl TestObjectWrap {
101101
tokio::time::sleep(std::time::Duration::from_millis(ms as u64)).await;
102102
Ok(())
103103
}
104+
105+
#[getter]
106+
#[string]
107+
fn with_slow_getter(&self) -> String {
108+
String::from("getter")
109+
}
104110
}
105111

106112
pub struct DOMPoint {

0 commit comments

Comments
 (0)