[oden] Garbage assets, need to rewrite to IO
This commit is contained in:
parent
75fcc427ac
commit
17805fa4a6
17 changed files with 240 additions and 94 deletions
|
|
@ -137,9 +137,7 @@ impl ValueRef {
|
|||
let mut res: u32 = 0;
|
||||
let ret = sys::JS_ToUint32(ctx.ctx, &mut res, self.val);
|
||||
if ret < 0 {
|
||||
let exc = ctx.exception();
|
||||
let desc = exc.to_string(&ctx).unwrap_or_else(|_| String::new());
|
||||
Err(Error::Exception(exc, desc))
|
||||
Err(ctx.exception_error())
|
||||
} else {
|
||||
Ok(res)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue