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

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

Issue 1625563002: Use the great new Devtools API for custom formatters. Now Dart objects are now generally as easy to… (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 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 typeof module != "undefined" && module.exports || {}; 9 typeof module != "undefined" && module.exports || {};
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 140 }
141 141
142 // TODO(vsm): DOM facades? 142 // TODO(vsm): DOM facades?
143 // See: https://github.com/dart-lang/dev_compiler/issues/173 143 // See: https://github.com/dart-lang/dev_compiler/issues/173
144 if (typeof NodeList !== "undefined") { 144 if (typeof NodeList !== "undefined") {
145 NodeList.prototype.get = function(i) { return this[i]; }; 145 NodeList.prototype.get = function(i) { return this[i]; };
146 NamedNodeMap.prototype.get = function(i) { return this[i]; }; 146 NamedNodeMap.prototype.get = function(i) { return this[i]; };
147 DOMTokenList.prototype.get = function(i) { return this[i]; }; 147 DOMTokenList.prototype.get = function(i) { return this[i]; };
148 HTMLCollection.prototype.get = function(i) { return this[i]; }; 148 HTMLCollection.prototype.get = function(i) { return this[i]; };
149 } 149 }
150
151 // This import is only needed for chrome debugging. We should provide an
152 // option to compile without it.
153 var devtoolsDebugger = import_('dart/_debugger');
154 devtoolsDebugger.registerDevtoolsFormatter();
150 } 155 }
151 156
152 })(dart_library); 157 })(dart_library);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698