Commit cc65d552 authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[api] Advance deprecation of MicroTask APIs

V8_DEPRECATE_SOON happened in v8.2

Bug: v8:8124
Change-Id: Iab138dc6bf45c577c86bed3cc2fc5b6422eeffab
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2450067
Auto-Submit: Camillo Bruni <cbruni@chromium.org>
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Reviewed-by: 's avatarShu-yu Guo <syg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70349}
parent b88e7d21
......@@ -7373,7 +7373,7 @@ class PromiseRejectMessage {
typedef void (*PromiseRejectCallback)(PromiseRejectMessage message);
// --- Microtasks Callbacks ---
V8_DEPRECATE_SOON("Use *WithData version.")
V8_DEPRECATED("Use *WithData version.")
typedef void (*MicrotasksCompletedCallback)(Isolate*);
typedef void (*MicrotasksCompletedCallbackWithData)(Isolate*, void*);
typedef void (*MicrotaskCallback)(void* data);
......@@ -9127,7 +9127,7 @@ class V8_EXPORT Isolate {
/**
* An alias for PerformMicrotaskCheckpoint.
*/
V8_DEPRECATE_SOON("Use PerformMicrotaskCheckpoint.")
V8_DEPRECATED("Use PerformMicrotaskCheckpoint.")
void RunMicrotasks() { PerformMicrotaskCheckpoint(); }
/**
......@@ -9171,7 +9171,7 @@ class V8_EXPORT Isolate {
* Executing scripts inside the callback will not re-trigger microtasks and
* the callback.
*/
V8_DEPRECATE_SOON("Use *WithData version.")
V8_DEPRECATED("Use *WithData version.")
void AddMicrotasksCompletedCallback(MicrotasksCompletedCallback callback);
void AddMicrotasksCompletedCallback(
MicrotasksCompletedCallbackWithData callback, void* data = nullptr);
......@@ -9179,7 +9179,7 @@ class V8_EXPORT Isolate {
/**
* Removes callback that was installed by AddMicrotasksCompletedCallback.
*/
V8_DEPRECATE_SOON("Use *WithData version.")
V8_DEPRECATED("Use *WithData version.")
void RemoveMicrotasksCompletedCallback(MicrotasksCompletedCallback callback);
void RemoveMicrotasksCompletedCallback(
MicrotasksCompletedCallbackWithData callback, void* data = nullptr);
......
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