1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:57:44 +00:00

LibJS: Change "Completion {}" to "Completion Record {}" in comments

This is an editorial change in the ECMA-262 spec.

See: 15a7d8a
This commit is contained in:
Linus Groh 2022-05-01 01:24:05 +02:00
parent 719137418d
commit c9bdd59e20
3 changed files with 10 additions and 10 deletions

View file

@ -84,7 +84,7 @@ public:
if (m_value.has_value())
return *this;
// 3. Return Completion { [[Type]]: completionRecord.[[Type]], [[Value]]: value, [[Target]]: completionRecord.[[Target]] }.
// 3. Return Completion Record { [[Type]]: completionRecord.[[Type]], [[Value]]: value, [[Target]]: completionRecord.[[Target]] }.
return { m_type, move(value), m_target };
}

View file

@ -868,7 +868,7 @@ Completion ECMAScriptFunctionObject::ordinary_call_evaluate_body()
MUST(call(global_object(), promise_capability.reject, js_undefined(), *declaration_result.throw_completion().value()));
}
// 5. Return Completion { [[Type]]: return, [[Value]]: promiseCapability.[[Promise]], [[Target]]: empty }.
// 5. Return Completion Record { [[Type]]: return, [[Value]]: promiseCapability.[[Promise]], [[Target]]: empty }.
return Completion { Completion::Type::Return, promise_capability.promise, {} };
}
}