Ensure that the "this" reference is set properly in aspects
matthewadams opened this issue · comments
It appears that the this reference is not being set to reference the instance of an aspect.
See https://github.com/matthewadams/aspect.js-babel7-poc/tree/aspect-this for a failing test case, specifically https://github.com/matthewadams/aspect.js-babel7-poc/blob/aspect-this/src/main/aspects/Aspect.js.
Failing test for this issue is now in #77
The tests were failing because of misusage of resetRegistry
. I'll close this, for now, let me know if I'm missing something.
Let me merge #77. The issue was a mess with the external advice being applied to classes from other test suits. I just made the selectors in the external advice more restrictive and removed a redundant resetRegistry
. Now the tests are working as expected.