Pass an immutable pointer to the private in NewProxyObject.

This commit is contained in:
Ms2ger 2014-05-26 20:18:00 +02:00
parent d5cb4377ef
commit 1834855ff5
2 changed files with 2 additions and 2 deletions

View file

@ -1722,7 +1722,7 @@ def CreateBindingJSObject(descriptor, parent=None):
let mut private = PrivateValue(squirrel_away_unique(aObject) as *libc::c_void);
let obj = with_compartment(aCx, proto, || {
NewProxyObject(aCx, *handler,
&mut private,
&private,
proto, %s,
ptr::mut_null(), ptr::mut_null())
});