acts-package-javascript 0.26.0

acts package that runs JavaScript code with an embedded QuickJS runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::env::Environment;

mod array;
mod console;

impl Environment {
    pub fn init(&mut self) {
        let mut modules = self.modules.write().expect("modules lock poisoned");

        modules.push(Box::new(console::ConsoleModule::new()));
        modules.push(Box::new(array::ArrayModule::new()));
    }
}