Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
Auto merge of #444 - AnshulMalik:optional-args, r=jdm
Browse files Browse the repository at this point in the history
remove optional arguments from NewProxyObject

Fixes #441

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/rust-mozjs/444)
<!-- Reviewable:end -->
  • Loading branch information
bors-servo committed Dec 21, 2018
2 parents f84b87a + ab8fc91 commit 2afcfa4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/glue.rs
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/glue_wrappers.in
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions src/jsglue.cpp
Expand Up @@ -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,
Expand Down

0 comments on commit 2afcfa4

Please sign in to comment.