[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/+/3462029 Reviewed-by: Shu-yu Guo <syg@chromium.org> Commit-Queue: Shu-yu Guo <syg@chromium.org> Cr-Commit-Position: refs/heads/main@{#79411}
This commit is contained in:
parent
e9caa2d034
commit
26ef9a85b8
1
AUTHORS
1
AUTHORS
@ -107,6 +107,7 @@ Fedor Indutny <fedor@indutny.com>
|
|||||||
Felix Geisendörfer <haimuiba@gmail.com>
|
Felix Geisendörfer <haimuiba@gmail.com>
|
||||||
Filipe David Manana <fdmanana@gmail.com>
|
Filipe David Manana <fdmanana@gmail.com>
|
||||||
Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
|
Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
|
||||||
|
Gao Sheng <gaosheng08@meituan.com>
|
||||||
Geoffrey Garside <ggarside@gmail.com>
|
Geoffrey Garside <ggarside@gmail.com>
|
||||||
Gergely Nagy <ngg@ngg.hu>
|
Gergely Nagy <ngg@ngg.hu>
|
||||||
Gilang Mentari Hamidy <gilang@hamidy.net>
|
Gilang Mentari Hamidy <gilang@hamidy.net>
|
||||||
|
@ -69,7 +69,7 @@ macro CreatePromiseAnyRejectElementFunction(implicit context: Context)(
|
|||||||
return reject;
|
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
|
transitioning javascript builtin
|
||||||
PromiseAnyRejectElementClosure(
|
PromiseAnyRejectElementClosure(
|
||||||
js-implicit context: Context, receiver: JSAny,
|
js-implicit context: Context, receiver: JSAny,
|
||||||
@ -314,7 +314,7 @@ Reject(JSAny) {
|
|||||||
return resultCapability.promise;
|
return resultCapability.promise;
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://tc39.es/proposal-promise-any/#sec-promise.any
|
// https://tc39.es/ecma262/#sec-promise.any
|
||||||
transitioning javascript builtin
|
transitioning javascript builtin
|
||||||
PromiseAny(
|
PromiseAny(
|
||||||
js-implicit context: Context, receiver: JSAny)(iterable: JSAny): JSAny {
|
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
|
transitioning javascript builtin
|
||||||
PromisePrototypeFinally(
|
PromisePrototypeFinally(
|
||||||
js-implicit context: Context, receiver: JSAny)(onFinally: JSAny): JSAny {
|
js-implicit context: Context, receiver: JSAny)(onFinally: JSAny): JSAny {
|
||||||
|
Loading…
Reference in New Issue
Block a user