1 2 3 4 5 6 7 8 9
use super::{Context, Executable}; use crate::{syntax::ast::node::Throw, Result, Value}; impl Executable for Throw { #[inline] fn run(&self, interpreter: &mut Context) -> Result<Value> { Err(self.expr().run(interpreter)?) } }
1 2 3 4 5 6 7 8 9
use super::{Context, Executable}; use crate::{syntax::ast::node::Throw, Result, Value}; impl Executable for Throw { #[inline] fn run(&self, interpreter: &mut Context) -> Result<Value> { Err(self.expr().run(interpreter)?) } }