Skip to content

Conversation

@Arlen22
Copy link
Collaborator

@Arlen22 Arlen22 commented Jul 31, 2025

Update the spec.emu file with a simpler spec. This is equivalent to the previous spec, except the previous version used unary expression instead of assignment expression, which is incorrect.

arthurfiorette
arthurfiorette previously approved these changes Jul 31, 2025
@arthurfiorette arthurfiorette requested a review from Copilot July 31, 2025 20:47
@arthurfiorette arthurfiorette self-assigned this Jul 31, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the ECMAScript specification for a try operator proposal, simplifying the spec by moving the operator from unary expressions to assignment expressions and replacing complex formal specification with a JavaScript-like implementation.

  • Moves the try operator from UnaryExpression to AssignmentExpression in the grammar
  • Replaces detailed formal specification sections with simplified abstract operations and JavaScript code
  • Removes extensive Result class formal definitions in favor of a JavaScript implementation

Arlen22 and others added 2 commits July 31, 2025 19:52
it's an args array, so use apply instead of call

Co-authored-by: Copilot <[email protected]>
@Arlen22 Arlen22 requested a review from arthurfiorette July 31, 2025 23:56
@arthurfiorette arthurfiorette merged commit 157ca63 into main Aug 1, 2025
2 checks passed
@arthurfiorette arthurfiorette deleted the arlen22/update-spec branch August 1, 2025 00:00
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.

3 participants