Commit 26ef9a85 authored by gaosheng08's avatar gaosheng08 Committed by V8 LUCI CQ

[code-style] Fix some comments of promise

When I was looking at the v8 Promise source, I noticed that some of the links that needed to point to ECMA262 were broken, some were deprecated, some were not legitimate, so I tried to fix them.

Bug: no
Change-Id: I26deeb635d8c293245e7cdb62089f60557547846
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3462029Reviewed-by: 's avatarShu-yu Guo <syg@chromium.org>
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79411}
parent e9caa2d0
......@@ -107,6 +107,7 @@ Fedor Indutny <fedor@indutny.com>
Felix Geisendörfer <haimuiba@gmail.com>
Filipe David Manana <fdmanana@gmail.com>
Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Gao Sheng <gaosheng08@meituan.com>
Geoffrey Garside <ggarside@gmail.com>
Gergely Nagy <ngg@ngg.hu>
Gilang Mentari Hamidy <gilang@hamidy.net>
......
......@@ -69,7 +69,7 @@ macro CreatePromiseAnyRejectElementFunction(implicit context: Context)(
return reject;
}
// https://tc39.es/proposal-promise-any/#sec-promise.any-reject-element-functions
// https://tc39.es/ecma262/#sec-promise.any-reject-element-functions
transitioning javascript builtin
PromiseAnyRejectElementClosure(
js-implicit context: Context, receiver: JSAny,
......@@ -314,7 +314,7 @@ Reject(JSAny) {
return resultCapability.promise;
}
// https://tc39.es/proposal-promise-any/#sec-promise.any
// https://tc39.es/ecma262/#sec-promise.any
transitioning javascript builtin
PromiseAny(
js-implicit context: Context, receiver: JSAny)(iterable: JSAny): JSAny {
......
......@@ -160,6 +160,7 @@ macro CreatePromiseFinallyFunctions(implicit context: Context)(
};
}
// https://tc39.es/ecma262/#sec-promise.prototype.finally
transitioning javascript builtin
PromisePrototypeFinally(
js-implicit context: Context, receiver: JSAny)(onFinally: JSAny): JSAny {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment