mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-03 06:18:38 +09:00
Bug 1147371: Implement calling IteratorClose and "return" on iterators in yield*
Issue #74
This commit is contained in:
parent
d36d40760a
commit
95390009cc
10 changed files with 232 additions and 45 deletions
|
|
@ -3975,7 +3975,7 @@ BaselineCompiler::emit_JSOP_MOREITER()
|
|||
}
|
||||
|
||||
bool
|
||||
BaselineCompiler::emit_JSOP_ISNOITER()
|
||||
BaselineCompiler::emitIsMagicValue()
|
||||
{
|
||||
frame.syncStack(0);
|
||||
|
||||
|
|
@ -3993,6 +3993,12 @@ BaselineCompiler::emit_JSOP_ISNOITER()
|
|||
return true;
|
||||
}
|
||||
|
||||
bool
|
||||
BaselineCompiler::emit_JSOP_ISNOITER()
|
||||
{
|
||||
return emitIsMagicValue();
|
||||
}
|
||||
|
||||
bool
|
||||
BaselineCompiler::emit_JSOP_ENDITER()
|
||||
{
|
||||
|
|
@ -4004,6 +4010,12 @@ BaselineCompiler::emit_JSOP_ENDITER()
|
|||
return emitOpIC(compiler.getStub(&stubSpace_));
|
||||
}
|
||||
|
||||
bool
|
||||
BaselineCompiler::emit_JSOP_ISGENCLOSING()
|
||||
{
|
||||
return emitIsMagicValue();
|
||||
}
|
||||
|
||||
bool
|
||||
BaselineCompiler::emit_JSOP_GETRVAL()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue