zertosh / invariant

invariant
MIT License
1.22k stars 70 forks source link

The `framesToPop` is puzzling me #41

Open jack-cn opened 4 years ago

jack-cn commented 4 years ago

Hi, https://github.com/zertosh/invariant/blob/master/invariant.js#L46

error.framesToPop = 1

Can the framesToPop be renamed to anything people want ? Have some info/refer links about framesToPop, please mark.

ths.

davidje13 commented 4 years ago

It appears to be an internal facebook logging thing: https://twitter.com/joshwnj/status/578062208283717632?lang=en

jack-cn commented 4 years ago

It appears to be an internal facebook logging thing: https://twitter.com/joshwnj/status/578062208283717632?lang=en

Ths