mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 22:45:47 +00:00
perf(js/browser/uefi): index export shape coverage and AST writes, eliminate CdpRuntimeRequests re-parse and UefiLzmaWorker JSON round-trip (#13535)
* perf(js/browser/uefi): index export shape coverage and AST writes, eliminate CdpRuntimeRequests re-parse and UefiLzmaWorker JSON round-trip (#13530) * fix(browser): detach published runtime initiator facts
This commit is contained in:
1 parent
5b63cf16ee
commit
593020442d
5 files changed
+70
-33
No files matched your search
@@ -2146,6 +2146,7 @@ export const semanticBindingHasPriorValueWrite = (
|
||||
): boolean => {
|
||||
if (binding.definitions.some(({ kind }) => kind === "function")) return true;
|
||||
const writes = state.bindingWrites.get(binding.bindingId) ?? [];
|
||||
const writeSet = new Set(writes);
|
||||
const read = semanticBindingAtRead(binding, site, state);
|
||||
const retained =
|
||||
read.status === "ordered"
|
||||
@@ -2161,7 +2162,7 @@ export const semanticBindingHasPriorValueWrite = (
|
||||
...binding.referenceInitializers,
|
||||
]) {
|
||||
let owner: t.Node | undefined = source.node;
|
||||
while (owner !== undefined && !writes.includes(owner))
|
||||
while (owner !== undefined && !writeSet.has(owner))
|
||||
owner = state.parentsByNode.get(owner);
|
||||
if (owner !== undefined) {
|
||||
representedWrites.add(owner);
|
||||
|
||||
Reference in new issue
Block a user