mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:37:36 +00:00
LibJS: Use more consistent wording for creating empty lists
This is an editorial change in the ECMA-262 spec.
See: 0bf22a9
This commit is contained in:
parent
438e3ceb4a
commit
99cc442f5c
1 changed files with 3 additions and 4 deletions
|
@ -186,8 +186,7 @@ Completion LabelledStatement::execute(Interpreter& interpreter, GlobalObject& gl
|
||||||
{
|
{
|
||||||
InterpreterNodeScope node_scope { interpreter, *this };
|
InterpreterNodeScope node_scope { interpreter, *this };
|
||||||
|
|
||||||
// 1. Let newLabelSet be a new empty List.
|
// 1. Return ? LabelledEvaluation of this LabelledStatement with argument « ».
|
||||||
// 2. Return ? LabelledEvaluation of this LabelledStatement with argument newLabelSet.
|
|
||||||
return labelled_evaluation(interpreter, global_object, *this, {});
|
return labelled_evaluation(interpreter, global_object, *this, {});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3825,7 +3824,7 @@ Completion SwitchStatement::execute_impl(Interpreter& interpreter, GlobalObject&
|
||||||
// 2. If the first CaseClauses is present, then
|
// 2. If the first CaseClauses is present, then
|
||||||
// a. Let A be the List of CaseClause items in the first CaseClauses, in source text order.
|
// a. Let A be the List of CaseClause items in the first CaseClauses, in source text order.
|
||||||
// 3. Else,
|
// 3. Else,
|
||||||
// a. Let A be « ».
|
// a. Let A be a new empty List.
|
||||||
// NOTE: A is case_clauses_1.
|
// NOTE: A is case_clauses_1.
|
||||||
|
|
||||||
// 4. Let found be false.
|
// 4. Let found be false.
|
||||||
|
@ -3860,7 +3859,7 @@ Completion SwitchStatement::execute_impl(Interpreter& interpreter, GlobalObject&
|
||||||
// 7. If the second CaseClauses is present, then
|
// 7. If the second CaseClauses is present, then
|
||||||
// a. Let B be the List of CaseClause items in the second CaseClauses, in source text order.
|
// a. Let B be the List of CaseClause items in the second CaseClauses, in source text order.
|
||||||
// 8. Else,
|
// 8. Else,
|
||||||
// a. Let B be « ».
|
// a. Let B be a new empty List.
|
||||||
// NOTE: B is case_clauses_2.
|
// NOTE: B is case_clauses_2.
|
||||||
|
|
||||||
// 9. If found is false, then
|
// 9. If found is false, then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue