--- 287e498f8f8c762f2b710773a848981b9abcb2c0/js/src/vm/Opcodes.h
+++ ab6f33f325d7ec14447aae5f7c6d586752911288/js/src/vm/Opcodes.h
@@ -3396,29 +3396,29 @@
*
* Category: Variables and scopes
* Type: Entering and leaving environments
* Operands:
* Stack: =>
*/ \
MACRO(LeaveWith, leave_with, NULL, 1, 0, 0, JOF_BYTE) \
/*
- * Append the object on the stack as a disposable to be disposed on
+ * Append the object and method on the stack as a disposable to be disposed on
* to the current lexical environment object.
*
- * Implements: [AddDisposableResource ( disposeCapability, V, hint [ , method ] )][1], step 1, 3-4.
+ * Implements: [AddDisposableResource ( disposeCapability, V, hint [ , method ] )][1], steps 3-4.
*
* [1] https://arai-a.github.io/ecma262-compare/?pr=3000&id=sec-adddisposableresource
*
* Category: Variables and scopes
* Type: Entering and leaving environments
* Operands: UsingHint hint
- * Stack: v => v
+ * Stack: v, method, needsClosure =>
*/ \
- IF_EXPLICIT_RESOURCE_MANAGEMENT(MACRO(AddDisposable, add_disposable, NULL, 2, 1, 1, JOF_UINT8)) \
+ IF_EXPLICIT_RESOURCE_MANAGEMENT(MACRO(AddDisposable, add_disposable, NULL, 2, 3, 0, JOF_UINT8)) \
/*
* Get the dispose capability of the present environment object.
* In case the dispose capability of the environment
* has already been cleared or if no disposables have been
* pushed to the capability, it shall push undefined as the dispose
* capability. After extracting a non-empty dispose
* capability, the dispose capability is cleared from the present
* environment object by setting it to undefined value.
Files
/js/src/vm/Opcodes.h
Changesets
Diffs
/js/src/vm/Opcodes.h