Bug 1904992 - Handle JSOp::AddDisposable in the stack dump in disassemble. r=arai

Differential Revision: https://phabricator.services.mozilla.com/D215320
This commit is contained in:
Debadree Chatterjee 2024-07-01 15:29:58 +00:00
parent b691306510
commit 630b99ecf1

View File

@ -2141,6 +2141,11 @@ bool ExpressionDecompiler::decompilePC(jsbytecode* pc, uint8_t defIndex) {
return write("HasOwn(") && decompilePCForStackOperand(pc, -2) &&
write(", ") && decompilePCForStackOperand(pc, -1) && write(")");
# ifdef ENABLE_EXPLICIT_RESOURCE_MANAGEMENT
case JSOp::AddDisposable:
return decompilePCForStackOperand(pc, -1);
# endif
default:
break;
}