Skip to content

Add missing Blob / Response polyfills - #5785

Merged
Oleksandr Karpovich (eymar) merged 1 commit into
JetBrains:masterfrom
alex28sh:add-missing-polyfills
Nov 3, 2026
Merged

Oleksandr Karpovich (eymar) merged 1 commit into
JetBrains:masterfrom
alex28sh:add-missing-polyfills

Conversation

@alex28sh

Copy link
Copy Markdown
Contributor

For Stack Switching we get stricter type checks, resulting in failures for instanceof typechecks for external declarations that are missing in the current environment.

For state machine compilation, we had no such type checks for some reason. ResponsePolyfill in fetch was created as a nameless object

    return {
        ok: true,
        status: 200,
        async blob() {
            return new BlobPolyfill(uint8, 'application/xml');
        },
    };

so, the call to blob() succeeded.

For typechecks to succeed in stack switching compilation mode, I'm adding ResponsePolyfill and BlobPolyfill

Release Notes

N/A

- Polyfill Response and Blob in polyfills.mjs
@eymar
Oleksandr Karpovich (eymar) merged commit 9fdd7d3 into JetBrains:master Nov 3, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants