pub(crate) fn call_offset_fn(
        &mut self,
        offset: usize,
        call: Call,
        args: usize,
    ) -> Result<(), VmError> {
        match call {
            Call::Async => {
                self.call_async_fn(offset, args)?;
            }
            Call::Stream => {
                self.call_stream_fn(offset, args)?;
            }
            Call::Generator => {
                self.call_generator_fn(offset, args)?;
            }
            Call::Immediate => {
                self.push_call_frame(offset, args)?;
            }
        }

        Ok(())
    }
/// Helper function to call the function at the given offset.
Helper function to call the function at the given offset.
Helper function to call the function at the given offset .
pub(crate) fn call_offset_fn(
        &mut self,
        offset: usize,
        call: Call,
        args: usize,
    ) -> Result<(), VmError> {
        match call {
            Call::Async => {
                self.call_async_fn(offset, args)?;
            }
            Call::Stream => {
                self.call_stream_fn(offset, args)?;
            }
            Call::Generator => {
                self.call_generator_fn(offset, args)?;
            }
            Call::Immediate => {
                self.push_call_frame(offset, args)?;
            }
        }
        Ok(())
    }
pub ( crate ) fn call_offset_fn ( & mut self , offset : usize , call : Call , args : usize , ) -> Result < ( ) , VmError > { match call { Call :: Async => { self . call_async_fn ( offset , args ) ? ; } Call :: Stream => { self . call_stream_fn ( offset , args ) ? ; } Call :: Generator => { self . call_generator_fn ( offset , args ) ? ; } Call :: Immediate => { self . push_call_frame ( offset , args ) ? ; } } Ok ( ( ) ) }
Helper function to call the function at the given offset.
Helper function to call the function at the given offset .
&mut self
offset
usize
call
Call
args
usize
&mut self
offset
usize
call
Call
args
usize