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

Side by Side Diff: lib/runtime/dart/core.js

Issue 1200243002: fixes #232, handling of arguments (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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/runtime/dart/js.js » ('j') | lib/src/codegen/js_codegen.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('dart/core', null, /* Imports */[ 1 dart_library.library('dart/core', null, /* Imports */[
2 "dart_runtime/dart" 2 "dart_runtime/dart"
3 ], /* Lazy imports */[ 3 ], /* Lazy imports */[
4 'dart/_js_helper', 4 'dart/_js_helper',
5 'dart/_internal', 5 'dart/_internal',
6 'dart/collection', 6 'dart/collection',
7 'dart/_interceptors', 7 'dart/_interceptors',
8 'dart/convert' 8 'dart/convert'
9 ], function(exports, dart, _js_helper, _internal, collection, _interceptors, con vert) { 9 ], function(exports, dart, _js_helper, _internal, collection, _interceptors, con vert) {
10 'use strict'; 10 'use strict';
11 let dartx = dart.dartx; 11 let dartx = dart.dartx;
12 class Object { 12 class Object {
13 constructor() { 13 constructor() {
14 let name = this.constructor.name; 14 let name = this.constructor.name;
15 let init = this[name];
16 let result = void 0; 15 let result = void 0;
17 if (init) 16 if (name in this)
18 result = init.apply(this, arguments); 17 result = this[name](...arguments);
19 return result === void 0 ? this : result; 18 return result === void 0 ? this : result;
20 } 19 }
21 ['=='](other) { 20 ['=='](other) {
22 return identical(this, other); 21 return identical(this, other);
23 } 22 }
24 get hashCode() { 23 get hashCode() {
25 return _js_helper.Primitives.objectHashCode(this); 24 return _js_helper.Primitives.objectHashCode(this);
26 } 25 }
27 toString() { 26 toString() {
28 return _js_helper.Primitives.objectToString(this); 27 return _js_helper.Primitives.objectToString(this);
(...skipping 3337 matching lines...) Expand 10 before | Expand all | Expand 10 after
3366 exports.StackTrace = StackTrace; 3365 exports.StackTrace = StackTrace;
3367 exports.Stopwatch = Stopwatch; 3366 exports.Stopwatch = Stopwatch;
3368 exports.String = String; 3367 exports.String = String;
3369 exports.RuneIterator = RuneIterator; 3368 exports.RuneIterator = RuneIterator;
3370 exports.StringBuffer = StringBuffer; 3369 exports.StringBuffer = StringBuffer;
3371 exports.StringSink = StringSink; 3370 exports.StringSink = StringSink;
3372 exports.Symbol = Symbol; 3371 exports.Symbol = Symbol;
3373 exports.Type = Type; 3372 exports.Type = Type;
3374 exports.Uri = Uri; 3373 exports.Uri = Uri;
3375 }); 3374 });
OLDNEW
« no previous file with comments | « no previous file | lib/runtime/dart/js.js » ('j') | lib/src/codegen/js_codegen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698