mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 06:10:35 +00:00
Properly initialized mSaveDepth in JSAutoSuspendRequest, r=sayrer.
This commit is contained in:
parent
107ed7aaa9
commit
1ec2c83e49
@ -455,7 +455,7 @@ class JSAutoRequest {
|
||||
|
||||
class JSAutoSuspendRequest {
|
||||
public:
|
||||
JSAutoSuspendRequest(JSContext *cx) : mContext(cx) {
|
||||
JSAutoSuspendRequest(JSContext *cx) : mContext(cx), mSaveDepth(0) {
|
||||
if (mContext) {
|
||||
mSaveDepth = JS_SuspendRequest(mContext);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user