mirror of
https://github.com/morluto/rea.git
synced 2026-10-29 19:05:45 +00:00
fix(javascript): preserve uncertain call targets across activation boundaries
This commit is contained in:
1 parent
599fdac029
commit
3b02179560
7 files changed
+180
-13
No files matched your search
@@ -13,7 +13,6 @@ import {
|
||||
} from "./javascriptAstValues.js";
|
||||
import {
|
||||
resolveSemanticBindingState,
|
||||
semanticStableInitializer,
|
||||
type JavaScriptSemanticAnalysisState,
|
||||
type JavaScriptSemanticBindingState,
|
||||
type JavaScriptSemanticInitializer,
|
||||
@@ -128,9 +127,7 @@ const resolveIdentifier = (
|
||||
);
|
||||
// Knowing every local candidate does not prove that any write replaced the
|
||||
// incoming value, or that a write in another activation precedes this read.
|
||||
const covered =
|
||||
read.hasDefiniteInitializer ||
|
||||
semanticStableInitializer(binding, context.state) !== undefined;
|
||||
const covered = read.hasDefiniteInitializer;
|
||||
const resolution =
|
||||
candidates.complete && !covered
|
||||
? {
|
||||
|
||||
Reference in new issue
Block a user