diff --git a/src/glue.rs b/src/glue.rs index 03d06a55c..64ac2cc88 100644 --- a/src/glue.rs +++ b/src/glue.rs @@ -1,4 +1,5 @@ use jsapi::*; +use std::os::raw::c_void; pub enum Action { } unsafe impl Sync for ProxyTraps { } @@ -265,4 +266,5 @@ extern "C" { pub fn CallUnbarrieredObjectTracer(trc: *mut JSTracer, objp: *mut *mut JSObject, name: *const ::libc::c_char); + pub fn GetProxyHandlerFamily() -> *const c_void; } diff --git a/src/jsglue.cpp b/src/jsglue.cpp index 700e15811..575363a43 100644 --- a/src/jsglue.cpp +++ b/src/jsglue.cpp @@ -629,6 +629,12 @@ IsProxyHandlerFamily(JSObject* obj) return js::GetProxyHandler(obj)->family() == &HandlerFamily; } +const void* +GetProxyHandlerFamily() +{ + return &HandlerFamily; +} + const void* GetProxyHandlerExtra(JSObject* obj) {