bun_sm 0.1.0

SpiderMonkey-backed API compatibility layer replacing bun_jsc
1
2
3
4
5
6
7
8
9
10
//! C API compatibility layer.

use mozjs::jsapi::{JSContext, JSObject};
use mozjs::jsval::JSVal;

pub type JSNative = unsafe extern "C" fn(cx: *mut JSContext, argc: u32, vp: *mut JSVal) -> bool;

pub mod c {
    pub type JSNative = super::JSNative;
}