Skip to content

fix scope related bug #53

@eddycharly

Description

@eddycharly

This test should fail:

	{
		args: args{
			expression: `let({"b": @.a}, &a.b)`,
			data: map[string]interface{}{
				"a": 42.0,
			},
		},
		want: 42.0,
	}

Once &a has been looked up from the scope, we should not use the scope again to lookup .b.

@springcomp am I right thinking we have a bug here ?

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