robertkrimen/otto — pull request #92 by BiggerNoise (2014-07-30 19:26:53+00:00)
Title: Passing map[string]interface{} behaves differently between Set & Call

This is a P/R with a couple of tests that show a difference that is currently biting me a bit.

We're working with records that will be of the form map[string]interface{}.

If I Set() the map to a particular name, I can then Run code that calls a function and passes that name as an argument to a precompiled function. This is the first test and it passes.

However, if I Call() the function name and attempt to pass the map as an argument, I get:
TypeError: invalid value (map): missing runtime: map[foo:bar answer:42] (map[string]interface {})

To the extent that I can follow the code, it does look like the two are handled differently. Should they be? Or am I so far off in the weeds that you can barely see me?

I tried to make the tests look like what was there as much as I could, but I wasn't quite sure how to perform my test with your test().