diff --git a/src/glue.rs b/src/glue.rs index 6be05d9c9..dc2d64be8 100644 --- a/src/glue.rs +++ b/src/glue.rs @@ -219,8 +219,7 @@ extern "C" { pub fn DeleteCompileOptions(aOpts: *mut ReadOnlyCompileOptions); pub fn NewProxyObject(aCx: *mut JSContext, aHandler: *const ::libc::c_void, aPriv: HandleValue, - proto: *mut JSObject, parent: *mut JSObject, - call: *mut JSObject, construct: *mut JSObject) + proto: *mut JSObject) -> *mut JSObject; pub fn WrapperNew(aCx: *mut JSContext, aObj: HandleObject, aHandler: *const ::libc::c_void, aClass: *const JSClass, diff --git a/src/glue_wrappers.in b/src/glue_wrappers.in index af5bf2bd2..149978abb 100644 --- a/src/glue_wrappers.in +++ b/src/glue_wrappers.in @@ -3,7 +3,7 @@ wrap!(glue: pub fn InvokeHasOwn(handler: *const ::libc::c_void, cx: *mut JSConte wrap!(glue: pub fn CallJitGetterOp(info: *const JSJitInfo, cx: *mut JSContext, thisObj: HandleObject, specializedThis: *mut ::libc::c_void, argc: u32, vp: *mut Value) -> bool); wrap!(glue: pub fn CallJitSetterOp(info: *const JSJitInfo, cx: *mut JSContext, thisObj: HandleObject, specializedThis: *mut ::libc::c_void, argc: u32, vp: *mut Value) -> bool); wrap!(glue: pub fn CallJitMethodOp(info: *const JSJitInfo, cx: *mut JSContext, thisObj: HandleObject, specializedThis: *mut ::libc::c_void, argc: u32, vp: *mut Value) -> bool); -wrap!(glue: pub fn NewProxyObject(aCx: *mut JSContext, aHandler: *const ::libc::c_void, aPriv: HandleValue, proto: *mut JSObject, parent: *mut JSObject, call: *mut JSObject, construct: *mut JSObject) -> *mut JSObject); +wrap!(glue: pub fn NewProxyObject(aCx: *mut JSContext, aHandler: *const ::libc::c_void, aPriv: HandleValue, proto: *mut JSObject) -> *mut JSObject); wrap!(glue: pub fn WrapperNew(aCx: *mut JSContext, aObj: HandleObject, aHandler: *const ::libc::c_void, aClass: *const JSClass, aSingleton: bool) -> *mut JSObject); wrap!(glue: pub fn NewWindowProxy(aCx: *mut JSContext, aObj: HandleObject, aHandler: *const ::libc::c_void) -> *mut JSObject); wrap!(glue: pub fn RUST_JSID_IS_INT(id: HandleId) -> bool); diff --git a/src/jsglue.cpp b/src/jsglue.cpp index 3fbf8f7bc..2b5b97787 100644 --- a/src/jsglue.cpp +++ b/src/jsglue.cpp @@ -588,8 +588,7 @@ DeleteCompileOptions(JS::ReadOnlyCompileOptions *aOpts) JSObject* NewProxyObject(JSContext* aCx, const void* aHandler, JS::HandleValue aPriv, - JSObject* proto, JSObject* parent, JSObject* call, - JSObject* construct) + JSObject* proto) { js::ProxyOptions options; return js::NewProxyObject(aCx, (js::BaseProxyHandler*)aHandler, aPriv, proto,