Skip to content

Promise: fix then interception #35793

@gterzian

Description

@gterzian

There are various test that check that then cannot be intercepted by script.

For example:

This leads to two potential problems in our code:

  1. A crash with assertion failed: incumbent_global.is_some(), as noted at Intermittent CRASH in /fetch/api/response/response-stream-with-broken-then.any.html #35419
  2. A failing test due to a succcessful interception.

On the topic of 2 above, I think this was already discussed at #34252. But I think the problem may be different from what was initially discussed, and anyway it is a good idea to centralize the discussion here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions