mirror of
https://github.com/morluto/rea.git
synced 2026-11-15 11:13:21 +00:00
fix(javascript): bound precise alias projection histories before expansion
This commit is contained in:
1 parent
eb721ebbf1
commit
4394e8b592
4 files changed
+363
-29
No files matched your search
@@ -21,6 +21,7 @@ import {
|
||||
semanticIterationSources,
|
||||
type SemanticIterationSource,
|
||||
} from "./javascriptSemanticIterationSources.js";
|
||||
import { joinSemanticPropertyPaths } from "./javascriptSemanticPropertyPaths.js";
|
||||
import { createSemanticReturnedReferences } from "./javascriptSemanticReturnedReferences.js";
|
||||
import {
|
||||
semanticCopiedReferencePath,
|
||||
@@ -189,10 +190,8 @@ export const createAmbientPathResolver = (
|
||||
continue;
|
||||
}
|
||||
if (suffix !== undefined && previous.length === suffix.length) {
|
||||
const joined: AmbientPath = previous.map((key, index) =>
|
||||
key === suffix?.[index] ? key : null,
|
||||
);
|
||||
if (joined.every((key, index) => key === previous[index])) {
|
||||
const joined = joinSemanticPropertyPaths(previous, suffix);
|
||||
if (joined === previous) {
|
||||
resolvedIdentity = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user