Skip to content

Compiler Assertion when comparing null with undefined #7225

Closed
@dsiu

Description

Happens in [email protected] but NOT in [email protected]

let a = null
let b = undefined
let res = a != b

yields

Unexpected Error

File "compiler/core/js_exp_make.ml", line 1756, characters 12-18: Assertion failed

Playgound link


Thank you for filing! Check list:

  • Is it a bug? Usage questions should often be asked in the forum instead.
  • Concise, focused, friendly issue title & description.
  • A minimal, reproducible example.
  • OS and browser versions, if relevant.
  • Is it already fixed in master? Instructions

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