sfo-js 0.1.1

A wrapper to simplify the use of boa-engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub use sfo_result::err as js_err;
pub use sfo_result::into_err as into_js_err;

#[derive(Debug, Copy, Clone, Eq, PartialEq)]
pub enum JSErrorCode {
    Failed,
    JsFailed,
    InvalidPath,
}

pub type JSError = sfo_result::Error<JSErrorCode>;
pub type JSResult<T> = sfo_result::Result<T, JSErrorCode>;