1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
use raw::{Isolate, Local};
pub unsafe fn throw(_: Isolate, val: Local) {
neon_sys::Neon_Error_Throw(val)
}
pub unsafe fn new_error(_: Isolate, out: &mut Local, msg: Local) {
neon_sys::Neon_Error_NewError(out, msg)
}
pub unsafe fn new_type_error(_: Isolate, out: &mut Local, msg: Local) {
neon_sys::Neon_Error_NewTypeError(out, msg)
}
pub unsafe fn new_range_error(_: Isolate, out: &mut Local, msg: Local) {
neon_sys::Neon_Error_NewRangeError(out, msg)
}
pub unsafe fn throw_error_from_utf8(_: Isolate, msg: *const u8, len: i32) {
neon_sys::Neon_Error_ThrowErrorFromUtf8(msg, len)
}