mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
LibJS: Change "Completion {}" to "Completion Record {}" in comments
This is an editorial change in the ECMA-262 spec. See: https://github.com/tc39/ecma262/commit/15a7d8a
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 11:24:19 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/c9bdd59e20 Pull-request: https://github.com/SerenityOS/serenity/pull/13874 Reviewed-by: https://github.com/IdanHo ✅
@@ -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, {} };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user