oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
74.35k stars 2.78k forks source link

Rewrite most of napi_threadsafe_function #15309

Open Jarred-Sumner opened 1 day ago

Jarred-Sumner commented 1 day ago

What does this PR do?

Supersedes https://github.com/oven-sh/bun/pull/15289

How did you verify your code works?

robobun commented 1 day ago

:x: @190n, your commit 44deb39513979917126e09fa72e1ba1d77653202 has 16 failures in #6616:

  • test/js/web/fetch/fetch.tls.test.ts - 1 failing on 🍎 14 aarch64
  • 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/cli/install/registry/bun-install-registry.test.ts - 1 failing on 🐧 3.20 x64
  • 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/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/js/node/child_process/child_process.test.ts - timeout on 🐧 2023 aarch64
  • test/js/node/child_process/child_process.test.ts - timeout on 🐧 2023 x64
  • test/js/node/child_process/child_process.test.ts - timeout on 🐧 2023 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-run.test.ts - timeout on 🐧 2023 aarch64
  • test/cli/run/run-crash-handler.test.ts - timeout on 🐧 2023 aarch64
  • test/cli/run/run-crash-handler.test.ts - timeout on 🐧 2023 x64
  • test/cli/run/run-crash-handler.test.ts - timeout on 🐧 2023 x64-baseline
  • test/bundler/bundler_compile.test.ts - 2 failing on 🐧 20.04 x64
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 11 aarch64
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 12 x64
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 11 x64
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 11 x64-baseline
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 12 x64-baseline
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 20.04 x64
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 22.04 x64
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 20.04 x64-baseline
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 22.04 x64-baseline
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 2023 x64-baseline
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 2023 x64
  • test/js/node/test/parallel/fs-watch-recursive-linux-parallel-remove.test.js - 1 failing on 🐧 2023 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/third_party/body-parser/express-bun-build-compile.test.ts - 1 failing on 🐧 2023 aarch64
  • test/js/third_party/body-parser/express-bun-build-compile.test.ts - 1 failing on 🐧 2023 x64
  • test/js/third_party/body-parser/express-bun-build-compile.test.ts - 1 failing on 🐧 2023 x64-baseline
  • test/bundler/cli.test.ts - 1 failing on 🐧 2023 aarch64
  • test/bundler/cli.test.ts - 1 failing on 🐧 2023 x64
  • test/bundler/cli.test.ts - 1 failing on 🐧 2023 x64-baseline
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🪟 2019 x64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🪟 2019 x64-baseline
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 22.04 aarch64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 12 aarch64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 11 aarch64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 20.04 aarch64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 2023 aarch64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 20.04 x64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 20.04 x64-baseline
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 22.04 x64-baseline
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 11 x64-baseline
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 11 x64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 12 x64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 22.04 x64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 12 x64-baseline
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 2023 x64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 2023 x64-baseline
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 3.20 aarch64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 3.20 x64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🐧 3.20 x64-baseline
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🍎 13 x64
  • test/js/third_party/prisma/prisma.test.ts - 1 failing on 🍎 14 x64
  • test/js/bun/http/serve.test.ts - 1 failing on 🍎 13 aarch64
  • 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/cli/hot/hot.test.ts - timeout on 🪟 2019 x64
  • test/cli/hot/hot.test.ts - timeout on 🐧 3.20 aarch64
  • test/cli/run/require-cache.test.ts - 1 failing on 🪟 2019 x64