diff --git a/js/src/jit/AsmJS.cpp b/js/src/jit/AsmJS.cpp index 266fc85028e..7e013d95ca0 100644 --- a/js/src/jit/AsmJS.cpp +++ b/js/src/jit/AsmJS.cpp @@ -1276,6 +1276,8 @@ class MOZ_STACK_CLASS ModuleCompiler } bool failName(ParseNode *pn, const char *fmt, PropertyName *name) { + // This function is invoked without the caller properly rooting its locals. + gc::AutoSuppressGC suppress(cx_); JSAutoByteString bytes; if (AtomToPrintableString(cx_, name, &bytes)) failf(pn, fmt, bytes.ptr());