marko 6.0.93 → 6.0.94

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8412,10 +8412,12 @@ function finalizeReferences() {
8412
8412
  intersectionsBySection
8413
8413
  );
8414
8414
  if (registerReason) {
8415
- forEach(
8416
- fn.referencedBindingsInFunction,
8417
- (binding) => addSerializeReason(binding.section, registerReason, binding)
8418
- );
8415
+ forEach(fn.referencedBindingsInFunction, (binding) => {
8416
+ addSerializeReason(binding.section, registerReason, binding);
8417
+ if (binding.section !== fn.section) {
8418
+ addOwnerSerializeReason(fn.section, binding.section, registerReason);
8419
+ }
8420
+ });
8419
8421
  }
8420
8422
  }
8421
8423
  forEachSectionReverse((section) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "6.0.93",
3
+ "version": "6.0.94",
4
4
  "description": "Optimized runtime for Marko templates.",
5
5
  "keywords": [
6
6
  "api",