diff options
Diffstat (limited to 'js/src/vm/JSContext.h')
-rw-r--r-- | js/src/vm/JSContext.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/vm/JSContext.h b/js/src/vm/JSContext.h index ba665d6c1a..df09fa40c8 100644 --- a/js/src/vm/JSContext.h +++ b/js/src/vm/JSContext.h @@ -416,6 +416,16 @@ struct JS_PUBLIC_API JSContext : public JS::RootingContext, /* If non-null, report JavaScript entry points to this monitor. */ js::ContextData<JS::dbg::AutoEntryMonitor*> entryMonitor; + // In brittle mode, any failure will produce a diagnostic assertion rather + // than propagating an error or throwing an exception. This is used for + // intermittent crash diagnostics: if an operation is failing for unknown + // reasons, turn on brittle mode and annotate the operations within + // SpiderMonkey that the failing operation uses with: + // + // MOZ_DIAGNOSTIC_ASSERT(!cx->brittleMode, "specific failure"); + // + bool brittleMode = false; + /* * Stack of debuggers that currently disallow debuggee execution. * |