You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some macros "bind" their properties directly to mutable variables instead of copying them.
Memory
In the example bellow it is possible to see that the a memory macro refers directly to cell to execute read/write
operations, even though the value that cell holds may change.
But the expected behavior was for a to hold a copy of the value contained in cell.
Fixing this issue is as simple as creating a copy of the value if it is not constant, but may create unecessary assignments that reduce the performance of the generated code.
The text was updated successfully, but these errors were encountered:
Some macros "bind" their properties directly to mutable variables instead of copying them.
Memory
In the example bellow it is possible to see that the
a
memory macro refers directly tocell
to execute read/writeoperations, even though the value that
cell
holds may change.But the expected behavior was for
a
to hold a copy of the value contained incell
.Output:
Object/array literals
The same happens with object and array literals. In the example bellow it is possible to see that changes in
a
reflect on the objects and vice-versa:
Output:
Fixing this issue is as simple as creating a copy of the value if it is not constant, but may create unecessary assignments that reduce the performance of the generated code.
The text was updated successfully, but these errors were encountered: