| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 var dart; | 5 var dart; |
| 6 (function (dart) { | 6 (function (dart) { |
| 7 var defineProperty = Object.defineProperty; | 7 var defineProperty = Object.defineProperty; |
| 8 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | 8 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; |
| 9 var getOwnPropertyNames = Object.getOwnPropertyNames; | 9 var getOwnPropertyNames = Object.getOwnPropertyNames; |
| 10 | 10 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 return obj; | 100 return obj; |
| 101 } | 101 } |
| 102 dart.as = as_; | 102 dart.as = as_; |
| 103 | 103 |
| 104 function is(obj, type) { | 104 function is(obj, type) { |
| 105 // TODO(vsm): Implement. | 105 // TODO(vsm): Implement. |
| 106 throw new core.UnimplementedError(); | 106 throw new core.UnimplementedError(); |
| 107 } | 107 } |
| 108 dart.is = is; | 108 dart.is = is; |
| 109 | 109 |
| 110 function closureWrap(obj, type) { |
| 111 // TODO(vsm): Remove this once we handle in the checker. |
| 112 return obj; |
| 113 } |
| 114 |
| 110 function isGroundType(type) { | 115 function isGroundType(type) { |
| 111 // TODO(vsm): Implement. | 116 // TODO(vsm): Implement. |
| 112 throw new core.UnimplementedError(); | 117 throw new core.UnimplementedError(); |
| 113 } | 118 } |
| 114 dart.isGroundType = isGroundType; | 119 dart.isGroundType = isGroundType; |
| 115 | 120 |
| 116 function arity(f) { | 121 function arity(f) { |
| 117 // TODO(vsm): Implement. | 122 // TODO(vsm): Implement. |
| 118 throw new core.UnimplementedError(); | 123 throw new core.UnimplementedError(); |
| 119 } | 124 } |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 var init = this[name]; | 353 var init = this[name]; |
| 349 var result = void 0; | 354 var result = void 0; |
| 350 if (init) result = init.apply(this, arguments); | 355 if (init) result = init.apply(this, arguments); |
| 351 return result === void 0 ? this : result; | 356 return result === void 0 ? this : result; |
| 352 }; | 357 }; |
| 353 // The initializer for Object | 358 // The initializer for Object |
| 354 core.Object.prototype.Object = function() {}; | 359 core.Object.prototype.Object = function() {}; |
| 355 core.Object.prototype.constructor = core.Object; | 360 core.Object.prototype.constructor = core.Object; |
| 356 | 361 |
| 357 })(dart || (dart = {})); | 362 })(dart || (dart = {})); |
| OLD | NEW |