commit | 7bed8feff22bfc603c8918d2e8ff15c66904780c | [log] [tgz] |
---|---|---|
author | Jenny Messerly <jmesserly@google.com> | Mon Apr 22 22:43:14 2019 +0000 |
committer | Aadil Maan <aadilmaan@google.com> | Tue Apr 23 09:47:04 2019 -0700 |
tree | c745796d87dfbd2e3b1703e5e0ba4346448cf86e | |
parent | 38228530d6564a5a3c8b7cb0ebb98948deef4633 [diff] |
[dartdevc] fix #36372, make JS Array constructor property usable from JS The `new array.constructor()` pattern is occasionally used in JS (presumably, to get the array subtype if one is available). GopherJS in particular does this. This fixes DDC's generic `JSArray<T>` to support this pattern, for all values of T. This also makes JSArray work like all other "native" types in DDC, where the "constructor" property is the JS constructor for that native type. Change-Id: I5270bd648d3d60cf07b8548fcd8c9b9d1a3018d4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/99940 Auto-Submit: Jenny Messerly <jmesserly@google.com> Reviewed-by: Nicholas Shahan <nshahan@google.com> Commit-Queue: Jenny Messerly <jmesserly@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.