Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /*zero:[exact=JSUInt31]*/ | |
| 6 zero() => 0; | |
| 7 | |
| 8 /*one:[exact=JSUInt31]*/ | |
| 9 one() => 1; | |
| 10 | |
| 11 /*half:[exact=JSDouble]*/ | |
| 12 half() => 0.5; | |
| 13 | |
| 14 /*large:[subclass=JSUInt32]*/ | |
| 15 large() => 2147483648; | |
| 16 | |
| 5 /*main:[null]*/ | 17 /*main:[null]*/ |
| 6 main() {} | 18 main() { |
| 19 zero(); | |
| 20 one(); | |
| 21 half(); | |
| 22 large(); | |
|
Siggi Cherem (dart-lang)
2017/08/28 22:34:57
maybe add something that doesn't fit in 32 bit as
Johnni Winther
2017/08/29 08:31:25
Done.
| |
| 23 } | |
| OLD | NEW |