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

Make booleans stringable #2

Merged
merged 2 commits into from
Mar 11, 2014
Merged

Make booleans stringable #2

merged 2 commits into from
Mar 11, 2014

Conversation

liliakai
Copy link
Contributor

Fixes "unsure of how to jsonify object of type boolean",
e.g., supportsSms: false

Fixes "unsure of how to jsonify object of type boolean",
e.g., supportsSms: false
@TheBlueMatt
Copy link
Contributor

Yea...the whole type conversion stuff in this plugin is really killing me...mostly the fact that there are like 3 crypto libraries all which have different types they use for representation of binary blobs is not helping...

@TheBlueMatt
Copy link
Contributor

The jsonify(undefined) thing I dont really like as its usually an indication of a bug that should be caught there instead of propagating further (esp if we're about to save undefined)

@liliakai
Copy link
Contributor Author

We could just as easily intercept it one call up the stack, in doAjax. That actually makes more sense now that I think about it.

For example, when requesting a verification code, there is no JSON data
to send.
TheBlueMatt pushed a commit that referenced this pull request Mar 11, 2014
Make booleans stringable
@TheBlueMatt TheBlueMatt merged commit 1c20dba into signalapp:master Mar 11, 2014
@Ulyssys Ulyssys mentioned this pull request Dec 4, 2020
@ghost ghost mentioned this pull request Feb 20, 2021
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants