Skip to content

Add Check for Omitted fields in compileObjectLiteral #1226

Closed
@torch2424

Description

@torch2424

Currently, compileObjectLiteral in compiler.ts it is missing to check which fields are not present, and either error if that's non-null and has no initializer, pick the initializer or make it 0.

This was found, and discussed in a Slack discussion. @dcodeIO has context on this as well 😄 👍

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