summaryrefslogtreecommitdiff
path: root/src/eval/methods.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval/methods.rs')
-rw-r--r--src/eval/methods.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/eval/methods.rs b/src/eval/methods.rs
index a449ac16..036f7ba2 100644
--- a/src/eval/methods.rs
+++ b/src/eval/methods.rs
@@ -135,11 +135,7 @@ pub fn call(
},
Value::Dyn(dynamic) => {
- if dynamic.type_name() == "counter" {
- return (vm.items.counter_method)(&dynamic, method, args, span);
- }
-
- return missing();
+ return (vm.items.library_method)(&dynamic, method, args, span);
}
_ => return missing(),
@@ -296,6 +292,7 @@ pub fn methods_on(type_name: &str) -> &[(&'static str, bool)] {
("step", true),
("update", true),
],
+ "state" => &[("get", true), ("final", true), ("update", true)],
_ => &[],
}
}