-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
NAPI fixes #7765
Conversation
src/bun.js/bindings/napi.cpp
Outdated
MarkedArgumentBufferWithSize<12> args; | ||
size_t argc = callFrame->argumentCount() + 1; | ||
args.fill(vm, argc, [&](auto* slot) { | ||
memcpy(slot, callFrame->addressOfArgumentsStart() - 1, sizeof(JSC::JSValue) * argc); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
❌ @Jarred-Sumner 3 files with test failures on bun-darwin-aarch64:
|
❌ @Jarred-Sumner 3 files with test failures on linux-x64:
|
❌ @Jarred-Sumner 4 files with test failures on linux-x64-baseline:
|
There was a problem hiding this 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
❌ @Jarred-Sumner 6 files with test failures on bun-darwin-x64:
|
❌ @Jarred-Sumner 5 files with test failures on bun-darwin-x64-baseline:
|
* 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>
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