mirror of
https://github.com/morluto/rea.git
synced 2026-11-20 13:45:30 +00:00
fix(javascript): preserve object reads inside outer array patterns (#12523)
This commit is contained in:
1 parent
3dfd7c2f0d
commit
77ffbe3da5
4 files changed
+169
-24
No files matched your search
@@ -45,6 +45,9 @@ cliTest(
|
||||
const projectedAlias = projectedSource;
|
||||
const [projected] = projectedAlias.items;
|
||||
projectedSource.items[0] = "later";
|
||||
const nestedArray = [{ mode: "read-time" }];
|
||||
const [{ mode: arrayObject }] = nestedArray;
|
||||
nestedArray[0].mode = "later";
|
||||
const box = { items: [] };
|
||||
const iterator = box.items.values();
|
||||
const prototype = Reflect.getPrototypeOf(iterator);
|
||||
@@ -74,6 +77,7 @@ cliTest(
|
||||
["arrayAssigned", ["0"]],
|
||||
["elided", ["1"]],
|
||||
["projected", ["items", "0"]],
|
||||
["arrayObject", ["0", "mode"]],
|
||||
["selected", ["0"], "candidate"],
|
||||
] as const) {
|
||||
const binding = graph.nodes.find(
|
||||
@@ -110,6 +114,7 @@ cliTest(
|
||||
"arrayAssigned",
|
||||
"elided",
|
||||
"projected",
|
||||
"arrayObject",
|
||||
"selected",
|
||||
]) {
|
||||
const binding = graph.nodes.find(
|
||||
|
||||
Reference in new issue
Block a user