mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:57:47 +00:00
LibJS: Change "as [the] argument[s]" to "with arguments" in comments
This is an editorial change in the ECMA-262 spec.
See: e671b96
This commit is contained in:
parent
214d5e3e83
commit
719137418d
2 changed files with 3 additions and 3 deletions
|
@ -2573,7 +2573,7 @@ Completion AssignmentExpression::execute(Interpreter& interpreter, GlobalObject&
|
|||
// 4. Let rval be ? GetValue(rref).
|
||||
auto rhs_result = TRY(m_rhs->execute(interpreter, global_object)).release_value();
|
||||
|
||||
// 5. Perform ? DestructuringAssignmentEvaluation of assignmentPattern using rval as the argument.
|
||||
// 5. Perform ? DestructuringAssignmentEvaluation of assignmentPattern with argument rval.
|
||||
TRY(interpreter.vm().destructuring_assignment_evaluation(pattern, rhs_result, global_object));
|
||||
|
||||
// 6. Return rval.
|
||||
|
|
|
@ -282,10 +282,10 @@ ThrowCompletionOr<void> VM::binding_initialization(NonnullRefPtr<BindingPattern>
|
|||
// 1. Perform ? RequireObjectCoercible(value).
|
||||
TRY(require_object_coercible(global_object, value));
|
||||
|
||||
// 2. Return the result of performing BindingInitialization of ObjectBindingPattern using value and environment as arguments.
|
||||
// 2. Return the result of performing BindingInitialization of ObjectBindingPattern with arguments value and environment.
|
||||
|
||||
// BindingInitialization of ObjectBindingPattern
|
||||
// 1. Perform ? PropertyBindingInitialization of BindingPropertyList using value and environment as the arguments.
|
||||
// 1. Perform ? PropertyBindingInitialization of BindingPropertyList with arguments value and environment.
|
||||
TRY(property_binding_initialization(*target, value, environment, global_object));
|
||||
|
||||
// 2. Return NormalCompletion(empty).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue