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

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

Issue 1233553005: Fixes #254 - Better stacktrace support (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Added utilities to help debugging Created 5 years, 5 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
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 /* This file defines the module loader for the dart runtime. 5 /* This file defines the module loader for the dart runtime.
6 */ 6 */
7 7
8 var dart_library; 8 var dart_library;
9 (function (dart_library) { 9 (function (dart_library) {
10 'use strict'; 10 'use strict';
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 let _isolate_helper = import_('dart/_isolate_helper'); 112 let _isolate_helper = import_('dart/_isolate_helper');
113 _isolate_helper.startRootIsolate(library.main, []); 113 _isolate_helper.startRootIsolate(library.main, []);
114 } 114 }
115 dart_library.start = start; 115 dart_library.start = start;
116 116
117 let _bootstrapped = false; 117 let _bootstrapped = false;
118 function bootstrap() { 118 function bootstrap() {
119 if (_bootstrapped) return; 119 if (_bootstrapped) return;
120 _bootstrapped = true; 120 _bootstrapped = true;
121 121
122 // Force import of core. 122 // Force import of core.
123 import_('dart/core'); 123 var core = import_('dart/core');
124 core.Object.toString = function() {
125 // Interface types are represented by the corresponding constructor
126 // function. This ensures that Dart interface types print properly.
127 return this.name;
128 }
124 129
125 // TODO(vsm): DOM facades? 130 // TODO(vsm): DOM facades?
126 // See: https://github.com/dart-lang/dev_compiler/issues/173 131 // See: https://github.com/dart-lang/dev_compiler/issues/173
127 NodeList.prototype.get = function(i) { return this[i]; }; 132 NodeList.prototype.get = function(i) { return this[i]; };
128 NamedNodeMap.prototype.get = function(i) { return this[i]; }; 133 NamedNodeMap.prototype.get = function(i) { return this[i]; };
129 DOMTokenList.prototype.get = function(i) { return this[i]; }; 134 DOMTokenList.prototype.get = function(i) { return this[i]; };
130 HTMLCollection.prototype.get = function(i) { return this[i]; }; 135 HTMLCollection.prototype.get = function(i) { return this[i]; };
131 136
132 } 137 }
133 138
134 })(dart_library || (dart_library = {})); 139 })(dart_library || (dart_library = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698