OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #library('interceptors'); | 5 #library('dart:_interceptors'); |
6 | 6 |
7 #import('coreimpl.dart'); | 7 #import('coreimpl.dart'); |
8 #import('js_helper.dart'); | 8 #import('js_helper.dart'); |
9 | 9 |
10 add$1(var receiver, var value) { | 10 add$1(var receiver, var value) { |
11 if (isJsArray(receiver)) { | 11 if (isJsArray(receiver)) { |
12 checkGrowable(receiver, 'add'); | 12 checkGrowable(receiver, 'add'); |
13 JS('Object', @'#.push(#)', receiver, value); | 13 JS('Object', @'#.push(#)', receiver, value); |
14 return; | 14 return; |
15 } | 15 } |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 if (receiver is !int) return UNINTERCEPTED(receiver.isEven()); | 635 if (receiver is !int) return UNINTERCEPTED(receiver.isEven()); |
636 return (receiver & 1) === 0; | 636 return (receiver & 1) === 0; |
637 } | 637 } |
638 | 638 |
639 isOdd(receiver) { | 639 isOdd(receiver) { |
640 if (receiver is !int) return UNINTERCEPTED(receiver.isOdd()); | 640 if (receiver is !int) return UNINTERCEPTED(receiver.isOdd()); |
641 return (receiver & 1) === 1; | 641 return (receiver & 1) === 1; |
642 } | 642 } |
643 | 643 |
644 get$toString(receiver) => () => toString(receiver); | 644 get$toString(receiver) => () => toString(receiver); |
OLD | NEW |