| 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 // TODO(jmesserly, sigmund): remove these two lines: |
| 6 var math = Math; |
| 7 var core = core || {int: { parse: Number }, print: e => console.log(e) }; |
| 8 |
| 5 var dart; | 9 var dart; |
| 6 (function (dart) { | 10 (function (dart) { |
| 7 var defineProperty = Object.defineProperty; | 11 var defineProperty = Object.defineProperty; |
| 8 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; | 12 var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; |
| 9 var getOwnPropertyNames = Object.getOwnPropertyNames; | 13 var getOwnPropertyNames = Object.getOwnPropertyNames; |
| 10 | 14 |
| 11 // Adapted from Angular.js | 15 // Adapted from Angular.js |
| 12 var FN_ARGS = /^function\s*[^\(]*\(\s*([^\)]*)\)/m; | 16 var FN_ARGS = /^function\s*[^\(]*\(\s*([^\)]*)\)/m; |
| 13 var FN_ARG_SPLIT = /,/; | 17 var FN_ARG_SPLIT = /,/; |
| 14 var FN_ARG = /^\s*(_?)(\S+?)\1\s*$/; | 18 var FN_ARG = /^\s*(_?)(\S+?)\1\s*$/; |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 var init = this[name]; | 352 var init = this[name]; |
| 349 var result = void 0; | 353 var result = void 0; |
| 350 if (init) result = init.apply(this, arguments); | 354 if (init) result = init.apply(this, arguments); |
| 351 return result === void 0 ? this : result; | 355 return result === void 0 ? this : result; |
| 352 }; | 356 }; |
| 353 // The initializer for Object | 357 // The initializer for Object |
| 354 core.Object.prototype.Object = function() {}; | 358 core.Object.prototype.Object = function() {}; |
| 355 core.Object.prototype.constructor = core.Object; | 359 core.Object.prototype.constructor = core.Object; |
| 356 | 360 |
| 357 })(dart || (dart = {})); | 361 })(dart || (dart = {})); |
| OLD | NEW |