2 ms·
So what are we talking about here? Just wrapping side effects with a constructor so they're isolatable? You could just modify the Function prototype to mock a c
by dclowd9901 11y ago
So what are we talking about here? Just wrapping side effects with a constructor so they're isolatable? You could just modify the Function prototype to mock a constant return for the same purpose, and it'd be completely transparent (no API littering the entire codebase).