Skip to content

DOMException loses properties (e.g. code, name) when transferred to a Worker #31983

@gildas-lormeau

Description

@gildas-lormeau

Version: Deno 2.6.x

How to reproduce the issue:

  1. Unzip the attached file test-bug.zip
  2. Open the index.html file via an HTTP server (e.g. run npx http-server) in Chrome or Firefox
  3. Open the debugger console and notice that the following log is displayed: Error code: 20
  4. Run deno run ./script.js
  5. Notice that this log is displayed in the console: Error code: undefined

Expected result:
The same log Error code: 20 must be displayed in the console when running the code in Deno.

This bug affects zip.js by causing it to fail in use cases related to action cancellation. As a consequence, this causes a regression in zip.js since the version 2.6 of Deno which supports transferable streams.

test-bug.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions