Skip to content

Add Check for Omitted fields in compileObjectLiteral #1226

Closed

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 😄 👍

Activity

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