Skip to content

Incorrect result for n + ++n compared with V8 #5545

Description

@wyattzheng

Reproduced with unmodified boa_engine 0.22.0.

(()=>{var n=1;return n + ++n})()
  • Boa: 4
  • V8 (Chromium): 3

Expected: 3, matching V8. The left operand should retain its value before ++n is evaluated.

Activity

  1. Niloyyy commented on Oct 2, 2026

    @Niloyyy

    I am working on this issue.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions