Closed thomasf1 closed 8 years ago
Hi, thanks for this!
I don't have any immediate ideas. They should be equivalent. If you can simplify it to the core structure that isn't matching I can help debug.
Ok, I´ve done some investigating, and it´s a special case that is probably negligible...
It´s because we create empty ReactiveDicts (a special Object type used in Meteor) which in JSON serializes to the same, but two of those compared (natively) in JS are not equal. Most likely a thing they could/should fix...
PS: It took a while, 450kb of JSON for each result seem to break both the coffeescript compiler as well as cause issues with JSON.parse :o
The Coffee compiler does a lot of lexing for objects, so it might get very slow, yeah. Look into CSON maybe?
Thanks, just needed that for the debugging and fixed it... it just took a bit of extra time...
And again, thanks for your great Library, guys!
Thanks! Feel free to reopen if the issue appears again.
I´ve got a quite complex data structure (too much to post), where I do this:
and I get that:
I´m open to debug that to help with sugar.js... But maybe you´ve already got some ideas?