Skip to content

fix: DictionaryAdapter missing handle scopes and locks #90

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

Merged
merged 2 commits into from
Dec 29, 2020

Conversation

delaneyb
Copy link
Contributor

Fixes EddyVerbruggen/nativescript-plugin-firebase#1728, which seems to have been due to thread switching in the callback at FIRFunctions.m#L187. This issue will affect any native library functions called with a JavaScript object which are then wrapped in a DictionaryAdapter, and then attempt to access or enumerate the DictionaryAdapters contents from another thread.

I have not worked in Objective C nor with V8 internals before. This pull request needs a careful review and testing. Thank you @darind for pointing me in the right direction.

@cla-bot cla-bot bot added the cla: yes label Dec 15, 2020
Copy link
Collaborator

@darind darind left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

firebaseFunctions: calls to httpsCallable functions crash if payload is an object
4 participants