Skip to content

Conversation

@k-yle
Copy link
Contributor

@k-yle k-yle commented Dec 8, 2025

It seems like this example: f.x = f.x | init is not meant to be bitwise. I don't see any discussion in #1426 about this particular change, nor in the baselines that were accepted.

Strangely, this example doesn't actually work in Strada, regardless of whether it's a bitwise-OR with logical-OR. Playground link. So perhaps I'm missing something obvious...

Copilot AI review requested due to automatic review settings December 8, 2025 10:03
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 corrects a documentation typo in the "Fallback initialisers" example, changing the bitwise-OR operator (|) to the logical-OR operator (||), which correctly represents the standard JavaScript fallback initialization pattern.

Key change:

  • Fixed the operator in the example from f.x = f.x | init to f.x = f.x || init

Copy link
Member

@jakebailey jakebailey left a comment

Choose a reason for hiding this comment

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

Yes, this is a typo

@jakebailey jakebailey enabled auto-merge December 8, 2025 16:54
@jakebailey jakebailey added this pull request to the merge queue Dec 8, 2025
Merged via the queue into microsoft:main with commit 828e64b Dec 8, 2025
28 checks passed
@k-yle k-yle deleted the kh/expando branch December 8, 2025 21:49
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