fix lack of newErr instance

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2019-07-11 18:17:47 +02:00
parent 9f8572018f
commit c3a34d9373

View File

@ -64,7 +64,7 @@ func (*invoker) transform(instance Invokee) (nativeCode, error) {
exports := instance.Exports()
for i, m := range exports {
i := i
newErr = func(str string) error {
newErr := func(str string) error {
return fmt.Errorf("transform(%s) export(%d): %s", itype.Name(), i, str)
}
if m == nil {