ajvincent / cross-stitch

Aspect weaving unit-testable components, both dynamically and with static code rewriting.
Mozilla Public License 2.0
0 stars 0 forks source link

Export eslint plugin: return passthrough result or update arguments #18

Open ajvincent opened 2 years ago

ajvincent commented 2 years ago

Imagine the following:

if (__passThrough__.callTarget("foo") !== __passThrough__) {
  doSomethingElse();
}

This is dangerous. Equally bad would be someone calling __passThrough__.callTarget("foo") after changing one of the arguments and not updating __passThrough__.modifiedArguments.