Somehow figured that the problem was that removing the comment makes the expression dynamic again for the next object evaluated. That's why it works once and then stops working.
Added a test expecting the effect to not be present.
The effect will be present even in the presence of @once if you use a spread, which I didn't figure how to handle nor what to expect to be honest. I didn't add a test for it because it will fail.
Related to #252
Somehow figured that the problem was that removing the comment makes the expression dynamic again for the next object evaluated. That's why it works once and then stops working.
Added a test expecting the effect to not be present.
The effect will be present even in the presence of
@once
if you use a spread, which I didn't figure how to handle nor what to expect to be honest. I didn't add a test for it because it will fail.