mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Update LabelledStatementNode to pass label to child loop
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
This commit is contained in:
parent
8f9a46bf7e
commit
9216bd2a4f
1 changed files with 3 additions and 0 deletions
|
|
@ -38,7 +38,10 @@ public:
|
|||
{
|
||||
size_t start = codeBlock->currentCodeSize();
|
||||
context->m_positionToContinue = start;
|
||||
String* previousLoopLabel = context->m_currentLoopLabel;
|
||||
context->m_currentLoopLabel = m_label;
|
||||
m_statementNode->generateStatementByteCode(codeBlock, context);
|
||||
context->m_currentLoopLabel = previousLoopLabel;
|
||||
size_t end = codeBlock->currentCodeSize();
|
||||
context->consumeLabelledBreakPositions(codeBlock, end, m_label, context->tryCatchWithBlockStatementCount());
|
||||
context->consumeLabelledContinuePositions(codeBlock, context->m_positionToContinue, m_label, context->tryCatchWithBlockStatementCount());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue