[oden] OK now everything is TS and it type-checks

This commit is contained in:
John Doty 2023-06-24 17:49:41 -07:00
parent 3968aabdb1
commit b6f6d908d2
6 changed files with 168 additions and 158 deletions

View file

@ -151,7 +151,7 @@ impl ContextRef {
pub fn import_module(&self, name: &str, base: &str) -> Result<Module> {
let name = CString::new(name)?;
let base = CString::new(base)?;
let module = unsafe { sys::JS_RunModule(self.ctx, name.as_ptr(), base.as_ptr()) };
let module = unsafe { sys::JS_RunModule(self.ctx, base.as_ptr(), name.as_ptr()) };
if module.is_null() {
return Err(self.exception_error());
}