fix(javascript): capture primitive return values at evaluation
This commit is contained in:
1 parent
5a099ef9ef
commit
27b077edea
2 files changed
+9
-7
No files matched your search
@@ -257,12 +257,12 @@ export const evaluateSemanticExpression = (
|
||||
dependence: { lowest: CALLER_INDEPENDENT },
|
||||
memo: createEvaluationMemo(state),
|
||||
};
|
||||
return evaluateExpression(
|
||||
node,
|
||||
capturePoint === undefined
|
||||
? context
|
||||
: (captureContextAt(capturePoint, context) ?? context),
|
||||
);
|
||||
return capturePoint === undefined
|
||||
? evaluateCapturedExpression(node, context)
|
||||
: evaluateExpression(
|
||||
node,
|
||||
captureContextAt(capturePoint, context) ?? context,
|
||||
);
|
||||
};
|
||||
|
||||
/** Resolve an expression using the same alias and module provenance owner. */
|
||||
|
||||
Reference in new issue
Block a user