| Index: sdk/lib/_internal/compiler/implementation/lib/js_number.dart
|
| ===================================================================
|
| --- sdk/lib/_internal/compiler/implementation/lib/js_number.dart (revision 17334)
|
| +++ sdk/lib/_internal/compiler/implementation/lib/js_number.dart (working copy)
|
| @@ -231,6 +231,26 @@
|
| if (other is !num) throw new ArgumentError(other);
|
| return JS('num', r'(# ^ #) >>> 0', this, other);
|
| }
|
| +
|
| + bool operator <(num other) {
|
| + if (other is !num) throw new ArgumentError(other);
|
| + return JS('num', '# < #', this, other);
|
| + }
|
| +
|
| + bool operator >(num other) {
|
| + if (other is !num) throw new ArgumentError(other);
|
| + return JS('num', '# > #', this, other);
|
| + }
|
| +
|
| + bool operator <=(num other) {
|
| + if (other is !num) throw new ArgumentError(other);
|
| + return JS('num', '# <= #', this, other);
|
| + }
|
| +
|
| + bool operator >=(num other) {
|
| + if (other is !num) throw new ArgumentError(other);
|
| + return JS('num', '# >= #', this, other);
|
| + }
|
| }
|
|
|
| class JSInt extends JSNumber {
|
|
|