Skip to content

Lines with a nullish coalescing assignment flags an error #3146

Closed
@powerCord1

Description

@powerCord1

p5.js version

v1.9.2

What is your operating system?

Windows

Web browser and version

Chrome 125.0.6422.142 Stable

Actual Behavior

error is being shown whenever i use a nullish coalescing assignment in the web editor

Expected Behavior

no error shows when i use a nullish coalescing assignment in the web editor

Steps to reproduce

Steps:

  1. use a nullish assignment somewhere in your code

Snippet:

bounds.wid ??= img.width
bounds.high ??= img.height

Screenshot 2024-06-05 112356

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugError or unexpected behaviors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions