diff options
Diffstat (limited to 'js/src')
-rw-r--r-- | js/src/jsapi.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/src/jsapi.cpp b/js/src/jsapi.cpp index 6ed4d1d89..dab4c25a4 100644 --- a/js/src/jsapi.cpp +++ b/js/src/jsapi.cpp @@ -7039,7 +7039,9 @@ JS::CaptureCurrentStack(JSContext* cx, JS::MutableHandleObject stackp, { AssertHeapIsIdle(cx); CHECK_REQUEST(cx); - MOZ_RELEASE_ASSERT(cx->compartment()); + if (!cx->compartment()) { + return false; + } JSCompartment* compartment = cx->compartment(); Rooted<SavedFrame*> frame(cx); |