Array lists do not get created in a child if the same name already exists in its parent

Wappler 7.3.9

Windows 11

NodeJS

Expected behaviour

If I create an array in a child, its scope should be constrained to the child, irrespective of its name. Results back to a parent should be passed as an extracted array.

This is possibly related to Scope of variables in libraries

Observed behaviour

Array lists do not get created in a child if the same name already exists in its parent.

Steps to reproduce

A) Create a child2 library

  • Create an array list in the child2 library and call it list1
  • Add items to list 1 in the child2 library
  • Extract the child’s array list1

B) Create a parent2 library

  • Create a new array list in the parent2 library and also call it list1
  • Execute the child library child2
  • Add an item to the array list list1
  • Extract the parent’s array list1

C) Create a test API to execute the parent2 library

D) Run the test API and notice that the parent array has the items added by both the parent and the child,

I was expecting that after the child was executed, and irrespective of what happened in it, that the array extracted from the parent’s array list would only contain the item added by the parent.