Chromium Code Reviews| Index: frog/leg/lib/core.dart |
| =================================================================== |
| --- frog/leg/lib/core.dart (revision 2741) |
| +++ frog/leg/lib/core.dart (working copy) |
| @@ -245,7 +245,11 @@ |
| class String {} |
| class bool {} |
| class Object {} |
| -class List<T> {} |
| +class List<T> { |
| + factory List(int n) { |
| + return JS(@"new Array($0)", n); |
|
kasperl
2011/12/22 11:34:42
Should we be checking that i is an int here (at le
ngeoffray
2011/12/22 13:07:02
Done.
|
| + } |
| +} |
| class Stopwatch { |
| double startMs; |