Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zig: make throwTODO use JSError #15264

Merged
merged 2 commits into from
Nov 20, 2024
Merged

zig: make throwTODO use JSError #15264

merged 2 commits into from
Nov 20, 2024

Conversation

nektro
Copy link
Member

@nektro nektro commented Nov 19, 2024

progress towards #15141

@robobun
Copy link

robobun commented Nov 19, 2024

@nektro, your commit d276df5 has 12 failures in #6494:

  • test/regression/issue/ctrl-c.test.ts - 1 failing on 🐧 3.20 x64
  • test/cli/install/registry/bun-install-registry.test.ts - timeout on 🐧 3.20 x64
  • test/integration/next-pages/test/dev-server.test.ts - 1 failing on 🐧 3.20 x64
  • test/integration/next-pages/test/dev-server.test.ts - 1 failing on 🐧 3.20 x64-baseline
  • test/v8/v8.test.ts - 22 failing on 🐧 3.20 aarch64
  • test/v8/v8.test.ts - 22 failing on 🐧 3.20 x64
  • test/v8/v8.test.ts - 22 failing on 🐧 3.20 x64-baseline
  • test/js/bun/http/serve.test.ts - segmentation fault on 🐧 3.20 aarch64
  • test/js/bun/http/serve.test.ts - segmentation fault on 🐧 3.20 x64
  • test/js/bun/http/serve.test.ts - segmentation fault on 🐧 3.20 x64-baseline
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 3.20 aarch64
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 3.20 x64
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 3.20 x64-baseline
  • test/js/bun/ffi/cc.test.ts - 1 failing on 🐧 3.20 aarch64
  • test/js/bun/ffi/cc.test.ts - 1 failing on 🐧 3.20 x64
  • test/js/bun/ffi/cc.test.ts - 1 failing on 🐧 3.20 x64-baseline
  • test/js/node/child_process/child_process.test.ts - 1 failing on 🐧 3.20 aarch64
  • test/js/node/child_process/child_process.test.ts - 1 failing on 🐧 3.20 x64
  • test/js/node/child_process/child_process.test.ts - 1 failing on 🐧 3.20 x64-baseline
  • test/cli/install/bun-link.test.ts - 4 failing on 🐧 3.20 aarch64
  • test/cli/install/bun-link.test.ts - 4 failing on 🐧 3.20 x64
  • test/cli/install/bun-link.test.ts - 4 failing on 🐧 3.20 x64-baseline
  • test/cli/run/require-cache.test.ts - 1 failing on 🪟 2019 x64-baseline
  • test/cli/run/require-cache.test.ts - 1 failing on 🪟 2019 x64
  • test/js/bun/spawn/spawn-signal.test.ts - 2 failing on 🪟 2019 x64
  • test/js/web/fetch/fetch.tls.test.ts - 1 failing on 🍎 14 aarch64
  • @nektro nektro marked this pull request as ready for review November 20, 2024 01:16
    @nektro nektro requested a review from dylan-conway November 20, 2024 01:17
    @@ -2305,7 +2305,7 @@ fn NewSocket(comptime ssl: bool) type {
    const length_value = args[2];

    if (encoding_value != .undefined and (offset_value != .undefined or length_value != .undefined)) {
    globalObject.throwTODO("Support encoding with offset and length altogether. Only either encoding or offset, length is supported, but not both combinations yet.");
    globalObject.throwTODO("Support encoding with offset and length altogether. Only either encoding or offset, length is supported, but not both combinations yet.") catch {};
    Copy link
    Member

    @dylan-conway dylan-conway Nov 20, 2024

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    Shouldn't we change writeOrEnd to have an error union return type instead of catch {};? Same with stdio.zig extract?

    Copy link
    Member Author

    Choose a reason for hiding this comment

    The reason will be displayed to describe this comment to others. Learn more.

    perhaps, yeah it seems this whole function is using .fail for exceptions
    @cirospaciari would likely know more on the prospect of that change

    @nektro nektro requested a review from dylan-conway November 20, 2024 23:13
    @dylan-conway dylan-conway merged commit c9d0fd5 into main Nov 20, 2024
    62 of 64 checks passed
    @dylan-conway dylan-conway deleted the nektro-patch-65276 branch November 20, 2024 23:16
    snoglobe pushed a commit that referenced this pull request Nov 21, 2024
    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.

    3 participants