v8/test/mjsunit/harmony/weakrefs
tzik b5baf76f77 Cancel EnqueueMicrotask of FinalizationGroup on detached contexts
MicrotaskQueue associated to Context may be null after DetachGlobal,
and triggering FinalizationGroup clean up on the detached context
causes a crash.
This CL fixes the crash by cancelling the clean up on such a context.

Bug: chromium:937784
Change-Id: I57883ae0caf6c6bb35e482e441b6e09e921d9def
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1552500
Reviewed-by: Sathya Gunasekaran <gsathya@chromium.org>
Reviewed-by: Ulan Degenbaev <ulan@chromium.org>
Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#60931}
2019-04-19 04:02:06 +00:00
..
basics.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
cleanup-doesnt-iterate-all-holdings.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
cleanup-from-different-realm.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
cleanup-is-a-microtask.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
cleanup-on-detached-realm.js Cancel EnqueueMicrotask of FinalizationGroup on detached contexts 2019-04-19 04:02:06 +00:00
cleanup-proxy-from-different-realm.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
cleanupsome-after-unregister.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
cleanupsome.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
finalization-group-keeps-holdings-alive.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
finalizationgroup-and-weakref.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
finalizationgroup-scheduled-for-cleanup-multiple-times.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
iterating-in-cleanup.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
multiple-dirty-finalization-groups.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
two-weakrefs.js [js weak refs] Migrate the WeakRef parts into the new API 2018-12-17 08:58:56 +00:00
undefined-holdings.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
unregister-after-cleanup.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
unregister-before-cleanup.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
unregister-called-twice.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
unregister-inside-cleanup1.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
unregister-inside-cleanup2.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
unregister-inside-cleanup3.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
unregister-inside-cleanup4.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
unregister-many.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
unregister-when-cleanup-already-scheduled.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
weak-cell-basics.js [js weak refs] Update to new API 2019-01-30 13:47:18 +00:00
weakref-creation-keeps-alive.js [js weak refs] Migrate the WeakRef parts into the new API 2018-12-17 08:58:56 +00:00
weakref-deref-keeps-alive.js [js weak refs] Migrate the WeakRef parts into the new API 2018-12-17 08:58:56 +00:00