Skip to content

Native record conversion loses __proto__ keys #1563

Description

@OskarEichler

Description

Native-to-JavaScript conversion for AnyMap and typed Record values writes keys with ordinary property assignment. A record key named __proto__ therefore invokes Object.prototype's legacy setter: object values replace the result prototype, while primitive values disappear without creating an own key.

Expected behavior

__proto__ should be emitted as a normal own enumerable/writable/configurable record property, preserving its converted value and the result's ordinary Object prototype across C++ and Kotlin/Swift implementations.

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