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

NAPI fixes #7765

Merged
merged 7 commits into from
Dec 21, 2023
Merged

NAPI fixes #7765

merged 7 commits into from
Dec 21, 2023

Conversation

Jarred-Sumner
Copy link
Collaborator

@Jarred-Sumner Jarred-Sumner commented Dec 21, 2023

What does this PR do?

Also adds some of the missing aliases in expect, like expect(...).toThrowError

How did you verify your code works?

Ran tests in argon2 and bcrypt

MarkedArgumentBufferWithSize<12> args;
size_t argc = callFrame->argumentCount() + 1;
args.fill(vm, argc, [&](auto* slot) {
memcpy(slot, callFrame->addressOfArgumentsStart() - 1, sizeof(JSC::JSValue) * argc);
Copy link
Member

Choose a reason for hiding this comment

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

we do the -1 offset to copy this into slot?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah i should write a comment here for this

its the this value's slot

Copy link
Contributor

github-actions bot commented Dec 21, 2023

@Jarred-Sumner 3 files with test failures on bun-darwin-aarch64:

  • test/cli/install/migration/migrate.test.ts
  • test/cli/run/transpiler-cache.test.ts
  • test/cli/test/bun-test.test.ts

View test output

#55faec5857c6ab43e0ad76f0bae222ba8073c024

Copy link
Contributor

github-actions bot commented Dec 21, 2023

@Jarred-Sumner 3 files with test failures on linux-x64:

  • test/cli/test/bun-test.test.ts
  • test/integration/next/default-pages-dir/test/next-build.test.ts
  • test/js/web/fetch/fetch-gzip.test.ts

View test output

#55faec5857c6ab43e0ad76f0bae222ba8073c024

Copy link
Contributor

github-actions bot commented Dec 21, 2023

@Jarred-Sumner 4 files with test failures on linux-x64-baseline:

  • test/cli/test/bun-test.test.ts
  • test/integration/next/default-pages-dir/test/next-build.test.ts
  • test/js/web/fetch/fetch-gzip.test.ts
  • test/js/web/workers/worker.test.ts

View test output

#55faec5857c6ab43e0ad76f0bae222ba8073c024

Copy link
Member

@cirospaciari cirospaciari left a comment

Choose a reason for hiding this comment

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

LGTM do we already have a bcrypt third-party test? would be to have one

Copy link
Contributor

@Jarred-Sumner 6 files with test failures on bun-darwin-x64:

  • test/cli/test/bun-test.test.ts
  • test/js/bun/spawn/spawn-streaming-stdout.test.ts
  • test/js/bun/util/which.test.ts
  • test/js/node/fs/fs.test.ts
  • test/js/third_party/webpack/webpack.test.ts
  • test/js/web/fetch/fetch.test.ts

View test output

#dc78ee7cc25e9962f1293e41da837c202d18c46e

Copy link
Contributor

github-actions bot commented Dec 21, 2023

@Jarred-Sumner 5 files with test failures on bun-darwin-x64-baseline:

  • test/js/bun/spawn/spawn-streaming-stdout.test.ts
  • test/js/bun/util/which.test.ts
  • test/js/node/fs/fs.test.ts
  • test/js/third_party/webpack/webpack.test.ts
  • test/js/web/fetch/fetch.test.ts

View test output

#55faec5857c6ab43e0ad76f0bae222ba8073c024

@Jarred-Sumner Jarred-Sumner merged commit a93f467 into main Dec 21, 2023
17 of 20 checks passed
@Jarred-Sumner Jarred-Sumner deleted the jarred/napi-fixes branch December 21, 2023 23:55
ryoppippi pushed a commit to ryoppippi/bun that referenced this pull request Feb 1, 2024
* napi fixes

* Make bcrypt work

* Always return this

* Fixes oven-sh#7685

* [autofix.ci] apply automated fixes

* Update napi.cpp

* Make it clearer what this is doing

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants