Skip to content

std.mergePatch evaluates object #188

@Duologic

Description

@Duologic

This snippet works differently compared to go-jsonnet/c-jsonnet:

std.mergePatch({ val: error 'should not error' }, {}) + { val+:: {} }
➜ jsonnet -e "std.mergePatch({ val: error 'should not error' }, {}) + { val+:: {} }"
{ }

➜ jrsonnet -e "std.mergePatch({ val: error 'should not error' }, {}) + { val+:: {} }"
runtime error: should not error
    <cmdline>:1:23-48: error statement
    <cmdline>:1:1-55:  function <builtin_merge_patch> call

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions