Skip to content

Kernel returns copy of object literals, preventing updates from applying #248

@RomainMuller

Description

@RomainMuller

As reported in aws/aws-cdk#774, the jsii kernel returns copies of object literals when coalescing them to a particular named type (typically an interface). This makes updates to interface-typed properties not reflect to the object they were obtained from.

A CDK example is when reading options from an @aws-cdk/cdk.Resource instance, and attempting to update it.

Metadata

Metadata

Assignees

Labels

bugThis issue is a bug.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions