traefik / yaegi

Yaegi is Another Elegant Go Interpreter
https://pkg.go.dev/github.com/traefik/yaegi
Apache License 2.0
7.02k stars 348 forks source link

Goto label undefined #1611

Open wdonne opened 7 months ago

wdonne commented 7 months ago

The following program sample.go triggers an unexpected result

https://github.com/mongodb/mongo-go-driver/blob/v1.14.0/bson/bsonrw/json_scanner.go

Expected result

$ go run vendor/go.mongodb.org/mongo-driver/bson/bsonrw/json_scanner.go
// package command-line-arguments is not a main package

Got

$ yaegi vendor/go.mongodb.org/mongo-driver/bson/bsonrw/json_scanner.go
// run: vendor/go.mongodb.org/mongo-driver/bson/bsonrw/json_scanner.go:218:3: undefined: evalNextEscapeChar

Yaegi Version

0.15.1

Additional Notes

This blocks a middleware I've written that does a MongoDB query.