[oden] OK now everything is TS and it type-checks
This commit is contained in:
parent
3968aabdb1
commit
b6f6d908d2
6 changed files with 168 additions and 158 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue