Skip to content

false becomes !1 in error messages #25896

@jakeg

Description

@jakeg

Run this code:

let a = {}
a.b.c = { d: false }

eg with bun -e "let a = {}; a.b.c = { d: false }"

Gives this error:

TypeError: undefined is not an object (evaluating 'a.b.c = { d: !1 }')

... I would expect the error to say evaluating 'a.b.c = { d: false }' not evaluating 'a.b.c = { d: !1 }'

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