Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: lib/runtime/dart_runtime.js

Issue 1010893004: Allow S->T <: dynamic->T (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Add comment Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | lib/src/checker/rules.dart » ('j') | lib/src/checker/rules.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 = {}));
OLDNEW
« no previous file with comments | « no previous file | lib/src/checker/rules.dart » ('j') | lib/src/checker/rules.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698