Signal no pending activity in destructed contexts.
Various hasPendingActivity() overrides weren't taking the state of the ExecutionContext into account, only considering if event listeners were registered. We're not interested in holding onto a script environment after an execution context has been destroyed, so adjust the predicates to return false if the ExecutionContext has been destructed. The V8GCController wrapper visitors already check if hasPendingActivity() implementations incorrectly return |true| when used inside of destroyed ExecutionContexts, but that check is not handled by trace wrappers (ActiveScriptWrappable.) R= BUG= Review-Url: https://codereview.chromium.org/2571193002 Cr-Commit-Position: refs/heads/master@{#438787}
Showing
Please register or sign in to comment