mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Make sure to hold on to our JS wrapper after wrapping it so it doesn't get
GC'ed out from under us. Bug 307279, r=jst, sr=brendan
This commit is contained in:
parent
877de009ae
commit
23e4e6f111
@ -131,7 +131,10 @@ public:
|
||||
|
||||
static nsresult WrapNative(JSContext *cx, JSObject *scope,
|
||||
nsISupports *native, const nsIID& aIID,
|
||||
jsval *vp);
|
||||
jsval *vp,
|
||||
// aHolder keeps the jsval alive while
|
||||
// there's a ref to it
|
||||
nsIXPConnectJSObjectHolder** aHolder);
|
||||
static nsresult ThrowJSException(JSContext *cx, nsresult aResult);
|
||||
|
||||
static nsresult InitDOMJSClass(JSContext *cx, JSObject *obj);
|
||||
|
Loading…
Reference in New Issue
Block a user