forked from servo/rust-mozjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
crust.rs
22 lines (16 loc) · 857 Bytes
/
crust.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
use jsapi::*;
pub extern fn JS_PropertyStub(++cx: *JSContext, ++obj: JSHandleObject, ++id: JSHandleId, ++vp: JSMutableHandleValue) -> JSBool {
bindgen::JS_PropertyStub(cx, obj, id, vp)
}
pub extern fn JS_StrictPropertyStub(++cx: *JSContext, ++obj: JSHandleObject, ++id: JSHandleId, ++strict: JSBool, ++vp: JSMutableHandleValue) -> JSBool {
bindgen::JS_StrictPropertyStub(cx, obj, id, strict, vp)
}
pub extern fn JS_EnumerateStub(++cx: *JSContext, ++obj: JSHandleObject) -> JSBool {
bindgen::JS_EnumerateStub(cx, obj)
}
pub extern fn JS_ResolveStub(++cx: *JSContext, ++obj: JSHandleObject, ++id: JSHandleId) -> JSBool {
bindgen::JS_ResolveStub(cx, obj, id)
}
pub extern fn JS_ConvertStub(++cx: *JSContext, ++obj: JSHandleObject, ++_type: JSType, ++vp: JSMutableHandleValue) -> JSBool {
bindgen::JS_ConvertStub(cx, obj, _type, vp)
}