mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:37:36 +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).
|
// 4. Let rval be ? GetValue(rref).
|
||||||
auto rhs_result = TRY(m_rhs->execute(interpreter, global_object)).release_value();
|
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));
|
TRY(interpreter.vm().destructuring_assignment_evaluation(pattern, rhs_result, global_object));
|
||||||
|
|
||||||
// 6. Return rval.
|
// 6. Return rval.
|
||||||
|
|
|
@ -282,10 +282,10 @@ ThrowCompletionOr<void> VM::binding_initialization(NonnullRefPtr<BindingPattern>
|
||||||
// 1. Perform ? RequireObjectCoercible(value).
|
// 1. Perform ? RequireObjectCoercible(value).
|
||||||
TRY(require_object_coercible(global_object, 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
|
// 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));
|
TRY(property_binding_initialization(*target, value, environment, global_object));
|
||||||
|
|
||||||
// 2. Return NormalCompletion(empty).
|
// 2. Return NormalCompletion(empty).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue