Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. ## [RC Diary] winston-cloudwatch bug, jobs, and the little schemer (-69)
  2.  
  3. ### Job applications
  4.  
  5. Tedious. Long. And possibly I'll never even receive a "No." email back. :(
  6.  
  7. Spent the whole morning doing that.
  8.  
  9. ### winston-cloudwatch bug
  10.  
  11. So... it appears yesterday manual refactor was a bad idea, I've left a non declared variable in a ternary operator and didn't
  12. properly cover a branch of it, result was that a user of my library (which configuration was going through that branch), got
  13. all of their server crashing as soon as they started.
  14.  
  15. The problem could be explained with this snippet
  16.  
  17. ```javascript
  18. true ? console.log('all good') : OMG()
  19. ```
  20.  
  21. `OMG` is not defined but that snippet doesn't throw a `ReferenceError` unless the else branch is evaluated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement