commit | f9402d635a0e043d94422bbbd387b8d78b18d1e6 | [log] [tgz] |
---|---|---|
author | Zichang Guo <zichangguo@google.com> | Mon May 20 15:50:54 2019 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Mon May 20 15:50:54 2019 +0000 |
tree | b9281c801d91805377e669b126976f60d32018f4 | |
parent | 82c8c78739f3fd40f91836bf0dd71d6e073a6627 [diff] |
[vm] Get script of closure from owner as parent function may contain wrong script 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>
Dart is an open-source, scalable programming language, with robust libraries and runtimes, for building web, server, and mobile apps.
Visit the dartlang.org to learn more about the language, tools, getting started, and more.
Browse pub.dartlang.org for more packages and libraries contributed by the community and the Dart team.
If you want to build Dart yourself, here is a guide to getting the source, preparing your machine to build the SDK, and building.
There are more documents on our wiki.
The easiest way to contribute to Dart is to file issues.
You can also contribute patches, as described in Contributing.