f9402d635a
When a mixin class is created, there might be anonymous closures copied over to the other script. Previously the script of closure function is the script of its parent function, which is not true in that case. The solution is to create a patch class as the owner if parent function has a different script object. Return script of owner when query for script of closure function. Bug: https://github.com/dart-lang/sdk/issues/34841 Change-Id: I53065cbf13f2d0dc8da320993fd3cd425e5c9714 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/102226 Commit-Queue: Zichang Guo <zichangguo@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com> Reviewed-by: Siva Annamalai <asiva@google.com>