rquickjs 0.0.1

High level bindings to the quickjs javascript engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::{value::rf::JsModuleRef, Ctx};
use rquickjs_sys as qjs;

/// A module with certain exports and imports
#[derive(Debug, PartialEq)]
pub struct Module<'js>(JsModuleRef<'js>);

impl<'js> Module<'js> {
    pub(crate) unsafe fn new(ctx: Ctx<'js>, js_val: qjs::JSValue) -> Self {
        Module(JsModuleRef::from_js_value(ctx, js_val))
    }
}