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

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

Issue 1007313003: Move sunflower to a new directory, make final tweaks to make it all work. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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/codegen/html_codegen.dart » ('j') | no next file with comments »
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 // 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
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 = {}));
OLDNEW
« no previous file with comments | « no previous file | lib/src/codegen/html_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698