Bug 1917037 - Include JOF_USES_ENV flags in explicit resource management opcodes. r=arai

Differential Revision: https://phabricator.services.mozilla.com/D221223
This commit is contained in:
Debadree Chatterjee 2024-09-06 03:34:42 +00:00
Родитель dd6c59fa13
Коммит cb5cebcd61
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -3413,7 +3413,7 @@
* Operands: UsingHint hint
* Stack: v, method, needsClosure =>
*/ \
IF_EXPLICIT_RESOURCE_MANAGEMENT(MACRO(AddDisposable, add_disposable, NULL, 2, 3, 0, JOF_UINT8)) \
IF_EXPLICIT_RESOURCE_MANAGEMENT(MACRO(AddDisposable, add_disposable, NULL, 2, 3, 0, JOF_UINT8|JOF_USES_ENV)) \
/*
* Get the dispose capability of the present environment object.
* In case the dispose capability of the environment
@ -3428,7 +3428,7 @@
* Operands:
* Stack: => disposeCapability
*/ \
IF_EXPLICIT_RESOURCE_MANAGEMENT(MACRO(TakeDisposeCapability, take_dispose_capability, NULL, 1, 0, 1, JOF_BYTE)) \
IF_EXPLICIT_RESOURCE_MANAGEMENT(MACRO(TakeDisposeCapability, take_dispose_capability, NULL, 1, 0, 1, JOF_BYTE|JOF_USES_ENV)) \
/*
* Push the current VariableEnvironment (the environment on the environment
* chain designated to receive new variables).