• tzik's avatar
    Replace %RunMicrotasks with %PerformMicrotaskCheckpoint · 07011cc4
    tzik authored
    This replaces Runtime_RunMicrotasks with Runtime_PerformMicrotaskCheckpoint.
    
    RunMicrotasks forcibly runs Microtasks even when the microtasks are suppressed,
    and may causes nested Microtasks in a problematic way. E.g. that confuses
    v8::MicrotasksScope::IsRunningMicrotasks() and GetEnteredOrMicrotaskContext().
    
    OTOH, PerformMicrotaskCheckpoint() doesn't run cause the failure as it
    respects the microtask suppressions.
    
    As all existing tests don't call RunMicrotasks() in the suppressed situation
    (like Promise.resolve().then(()=>{%RunMicrotasks();})), this change should
    not affect to these tests.
    
    Change-Id: Ib043a0cc8e482e022d375084d65ea98a6f54ef3d
    Reviewed-on: https://chromium-review.googlesource.com/c/1360095Reviewed-by: 's avatarYang Guo <yangguo@chromium.org>
    Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#58068}
    07011cc4
Name
Last commit
Last update
..
async-debug-basic.js Loading commit data...
async-debug-builtin-predictions.js Loading commit data...
async-debug-caught-exception-cases.js Loading commit data...
async-debug-caught-exception-cases0.js Loading commit data...
async-debug-caught-exception-cases1.js Loading commit data...
async-debug-caught-exception-cases2.js Loading commit data...
async-debug-caught-exception-cases3.js Loading commit data...
async-debug-caught-exception.js Loading commit data...
async-debug-step-abort-at-break.js Loading commit data...
async-debug-step-continue-at-break.js Loading commit data...
async-debug-step-in-and-out.js Loading commit data...
async-debug-step-in-out-out.js Loading commit data...
async-debug-step-in.js Loading commit data...
async-debug-step-nested.js Loading commit data...
async-debug-step-next-constant.js Loading commit data...
async-debug-step-next.js Loading commit data...
async-debug-step-out.js Loading commit data...
async-function-debug-evaluate.js Loading commit data...
async-function-debug-scopes.js Loading commit data...
debug-async-break-on-stack.js Loading commit data...
debug-async-break.js Loading commit data...
debug-async-liveedit.js Loading commit data...
promise-finally.js Loading commit data...