Skip to content

Deserialization as through start-job breaks strict-val and dot-based method invocation #8

@adamedx

Description

@adamedx

If a scriptclass object is returned from a job created by start-job, any members using strict-val will now be converted to noteproperty from scriptproperty and will no longer support type enforcement.

Workaround is to not use strict-val for classes whose objects must be deserialized.

Additionally, method invocation via . will not work on such objects -- anything that is not a noteproperty gets removed or converted to noteproperty on deserialization.

Workaround is to use |=> to call methods rather than ., as the former dynamically restores methods when invoked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions