Skip to content

Route lexical arrow bindings through unified bytecode - #2991

Merged
rogeralsing merged 1 commit into
mainfrom
codex/unified-bytecode-loop-33-next-gate
Jun 1, 2026
Merged

Route lexical arrow bindings through unified bytecode#2991
rogeralsing merged 1 commit into
mainfrom
codex/unified-bytecode-loop-33-next-gate

Conversation

@rogeralsing

Copy link
Copy Markdown
Contributor

Summary

  • pass captured lexical this/new.target values into production unified-bytecode VM entry for arrows
  • widen simple-return arrow admission to allow LoadThis/LoadNewTarget while still declining super/environment-backed arrows
  • add invocation coverage for lexical this/new.target arrows and update the expansion contract

Verification

  • rtk dotnet test tests/Asynkron.JsEngine.Tests -c Release --filter "FullyQualifiedNameUnifiedBytecodeProductionInvocationTests.ArrowFunction_LexicalThis_UsesUnifiedBytecodeProductionFastPath|FullyQualifiedNameUnifiedBytecodeProductionInvocationTests.ArrowFunction_LexicalNewTarget_UsesUnifiedBytecodeProductionFastPath|FullyQualifiedNameUnifiedBytecodeProductionInvocationTests.SimpleArrowFunction_UsesUnifiedBytecodeProductionFastPath|FullyQualifiedNameUnifiedBytecodeProductionInvocationTests.ArrowFunction_CapturedThis_DeclinesUnifiedBytecodeProductionFastPath|FullyQualifiedName~ExpressionProgramCoverageMapTests.UnifiedBytecodeExpansionContract_ListsRequiredHeadingsAndCurrentEnums"
  • rtk dotnet test tests/Asynkron.JsEngine.Tests -c Release --filter "FullyQualifiedNameUnifiedBytecodeProductionEligibilityTests|FullyQualifiedNameUnifiedBytecodeProductionInvocationTests|FullyQualifiedName~ExpressionProgramCoverageMapTests"
  • rtk dotnet build src/Asynkron.JsEngine/Asynkron.JsEngine.csproj -c Release
  • rtk rg "EvaluateExpression(|ProfileEvaluateExpression(" src/Asynkron.JsEngine/Ast/TypedAstEvaluator.ExecutionPlanRunner*
  • rtk git diff --check

Copilot AI review requested due to automatic review settings June 1, 2026 17:31
@rogeralsing
rogeralsing merged commit 9d0de02 into main Jun 1, 2026
@rogeralsing
rogeralsing deleted the codex/unified-bytecode-loop-33-next-gate branch June 1, 2026 17:31

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants