Came up with a cool strategy to make prod debugging of browser JS easier: keep all asserts, replace message with err code, report err code
-
-
Replying to @yoshuawuyts
I'm a heavy user of assert() in JS. Bundles to 6kb tho, and messages are verbose so not ideal. But thanks to transforms we can solve this
2 replies 0 retweets 3 likes -
Replying to @yoshuawuyts
You have options though: https://github.com/emilbayes/nanoassert … https://github.com/calvinmetcalf/minimalistic-assert … I only use assert(...), but I've noticed that you use assert.equals
1 reply 0 retweets 1 like
Replying to @emilbayes
Lmao, only now read this tweet - already wrote a PR for nanoassert 
- hope it good! 
5:42 AM - 21 Jul 2017
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.