Merge commit '6e92d2345e8231a44556ce7d416451f5f3e6c398' as 'engine262'

This commit is contained in:
2026-03-27 10:07:29 +05:30
433 changed files with 90478 additions and 0 deletions
@@ -0,0 +1,18 @@
import { Completion } from '../completion.mts';
import type { ParseNode } from '../parser/ParseNode.mts';
import { StringValue } from '../static-semantics/all.mts';
/** https://tc39.es/ecma262/#sec-continue-statement-runtime-semantics-evaluation */
// ContinueStatement :
// `continue` `;`
// `continue` LabelIdentifier `;`
export function Evaluate_ContinueStatement({ LabelIdentifier }: ParseNode.ContinueStatement) {
if (!LabelIdentifier) {
// 1. Return Completion { [[Type]]: continue, [[Value]]: empty, [[Target]]: empty }.
return new Completion({ Type: 'continue', Value: undefined, Target: undefined });
}
// 1. Let label be the StringValue of LabelIdentifier.
const label = StringValue(LabelIdentifier);
// 2. Return Completion { [[Type]]: continue, [[Value]]: empty, [[Target]]: label }.
return new Completion({ Type: 'continue', Value: undefined, Target: label });
}