fix lack of newErr instance
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
9f8572018f
commit
c3a34d9373
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user