Created
September 23, 2011 12:26
-
-
Save dominictarr/1237220 to your computer and use it in GitHub Desktop.
bug in json parse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
sometimes jsonparse changes numbers slightly. | |
*/ | |
var r = Math.random() | |
, Parser = require('jsonparse') | |
, p = new Parser() | |
, assert = require('assert') | |
, times = 20 | |
while (times --) { | |
assert.equal(JSON.parse(JSON.stringify(r)), r, 'core JSON') | |
p.onValue = function (v) { | |
console.error('parsed', v) | |
assert.equal(v, r) | |
} | |
console.error('correct', r) | |
p.write (new Buffer(JSON.stringify([r]))) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One of the most significant advantages of GB WhatsApp is its enhanced privacy settings. Users can hide their online status, blue ticks (read receipts), second ticks (delivery receipts), and even typing indicators with gowapk. This allows for a more private and controlled messaging experience, giving users the ability to browse and respond to messages at their own pace without feeling pressured.