| 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 /* 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 Loading... |
| 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); |
| OLD | NEW |