gval icon indicating copy to clipboard operation
gval copied to clipboard

No error even for invalid expression

Open guilhermehubner opened this issue 4 years ago • 0 comments

In the following code:

	result, err := gval.Evaluate("undefined_value == 10", map[string]interface{}{
		"whatever_var": "whatever_value",
	})
	fmt.Println(result, err)

I expect an error to be printed, instead it is printing: false, <nil>

guilhermehubner avatar Oct 12 '20 15:10 guilhermehubner