| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /** | 5 /** |
| 6 * This part contains helpers for supporting runtime type information. | 6 * This part contains helpers for supporting runtime type information. |
| 7 * | 7 * |
| 8 * The helper use a mixture of Dart and JavaScript objects. To indicate which is | 8 * The helper use a mixture of Dart and JavaScript objects. To indicate which is |
| 9 * used where we adopt the scheme of using explicit type annotation for Dart | 9 * used where we adopt the scheme of using explicit type annotation for Dart |
| 10 * objects and 'var' or omitted return type for JavaScript objects. | 10 * objects and 'var' or omitted return type for JavaScript objects. |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 * `null` and `undefined` (which we can avoid). | 679 * `null` and `undefined` (which we can avoid). |
| 680 */ | 680 */ |
| 681 bool isIdentical(var s, var t) => JS('bool', '# === #', s, t); | 681 bool isIdentical(var s, var t) => JS('bool', '# === #', s, t); |
| 682 | 682 |
| 683 /** | 683 /** |
| 684 * Returns `true` if the JavaScript values [s] and [t] are not identical. We use | 684 * Returns `true` if the JavaScript values [s] and [t] are not identical. We use |
| 685 * this helper instead of [identical] because `identical` needs to merge | 685 * this helper instead of [identical] because `identical` needs to merge |
| 686 * `null` and `undefined` (which we can avoid). | 686 * `null` and `undefined` (which we can avoid). |
| 687 */ | 687 */ |
| 688 bool isNotIdentical(var s, var t) => JS('bool', '# !== #', s, t); | 688 bool isNotIdentical(var s, var t) => JS('bool', '# !== #', s, t); |
| OLD | NEW |