| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 function native_BoolImplementation_EQ(other) { | 5 function native_BoolImplementation_EQ(other) { |
| 6 return typeof other == 'boolean' && this == other; | 6 throw Error('UNREACHABLE'); |
| 7 } | 7 } |
| 8 | 8 |
| 9 function native_BoolImplementation_toString() { | 9 function native_BoolImplementation_toString() { |
| 10 return this.toString(); | 10 return this.toString(); |
| 11 } | 11 } |
| 12 | 12 |
| 13 function native_BoolImplementation_toBool() { | 13 function native_BoolImplementation_toBool() { |
| 14 return this == true; | 14 return this == true; |
| 15 } | 15 } |
| OLD | NEW |