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

fix(ext/ffi): Invalid 'function' return type check logic, remove U32x2 as unnecessary #16259

Conversation

aapoalas
Copy link
Collaborator

The return type checking for "function" type FFI values was incorrect and presumed that functions were still being registered as objects containing a "function" key.

While here, I also removed the whole return type checking logic as it was needed for optionally creating BigInts on return when needed, but serde_v8 does this automatically now (I think).

Copy link
Member

@littledivy littledivy left a comment

Choose a reason for hiding this comment

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

LGTM!

@littledivy littledivy merged commit 1727153 into denoland:main Oct 13, 2022
@aapoalas aapoalas deleted the fix/ext-ffi/wrong-type-check-for-function-pointer branch October 13, 2022 12:33
bartlomieju pushed a commit that referenced this pull request Oct 17, 2022
…2 as unnecessary (#16259)

The return type checking for `"function"` type FFI values was incorrect
and presumed that functions were still being registered as objects
containing a "function" key.

While here, I also removed the whole return type checking logic as it
was needed for optionally creating BigInts on return when needed, but
serde_v8 does this automatically now (I think).
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.

None yet

2 participants