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

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

Issue 1173903003: fixes #216, JSNumber members (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
OLDNEW
1 dart.library('dart/core', null, /* Imports */[ 1 dart.library('dart/core', null, /* Imports */[
2 ], /* Lazy imports */[ 2 ], /* Lazy imports */[
3 'dart/_js_helper', 3 'dart/_js_helper',
4 'dart/_internal', 4 'dart/_internal',
5 'dart/collection', 5 'dart/collection',
6 'dart/_interceptors', 6 'dart/_interceptors',
7 'dart/convert' 7 'dart/convert'
8 ], function(exports, _js_helper, _internal, collection, _interceptors, convert) { 8 ], function(exports, _js_helper, _internal, collection, _interceptors, convert) {
9 'use strict'; 9 'use strict';
10 class Object { 10 class Object {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 let deprecated = dart.const(new Deprecated("next release")); 61 let deprecated = dart.const(new Deprecated("next release"));
62 let override = dart.const(new _Override()); 62 let override = dart.const(new _Override());
63 class _Proxy extends Object { 63 class _Proxy extends Object {
64 _Proxy() { 64 _Proxy() {
65 } 65 }
66 } 66 }
67 dart.setSignature(_Proxy, { 67 dart.setSignature(_Proxy, {
68 constructors: () => ({_Proxy: [_Proxy, []]}) 68 constructors: () => ({_Proxy: [_Proxy, []]})
69 }); 69 });
70 let proxy = dart.const(new _Proxy()); 70 let proxy = dart.const(new _Proxy());
71 dart.defineExtensionNames([
72 'toString'
73 ]);
71 class bool extends Object { 74 class bool extends Object {
72 static fromEnvironment(name, opts) { 75 static fromEnvironment(name, opts) {
73 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa lse; 76 let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : fa lse;
74 throw new UnsupportedError('bool.fromEnvironment can only be used as a con st constructor'); 77 throw new UnsupportedError('bool.fromEnvironment can only be used as a con st constructor');
75 } 78 }
76 [dartx.toString]() { 79 [dartx.toString]() {
77 return this ? "true" : "false"; 80 return this ? "true" : "false";
78 } 81 }
79 } 82 }
80 dart.setSignature(bool, { 83 dart.setSignature(bool, {
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 constructors: () => ({fromEnvironment: [int, [String], {defaultValue: int}]} ), 1250 constructors: () => ({fromEnvironment: [int, [String], {defaultValue: int}]} ),
1248 statics: () => ({parse: [int, [String], {radix: int, onError: dart.functionT ype(int, [String])}]}), 1251 statics: () => ({parse: [int, [String], {radix: int, onError: dart.functionT ype(int, [String])}]}),
1249 names: ['parse'] 1252 names: ['parse']
1250 }); 1253 });
1251 class Invocation extends Object { 1254 class Invocation extends Object {
1252 get isAccessor() { 1255 get isAccessor() {
1253 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter); 1256 return dart.notNull(this.isGetter) || dart.notNull(this.isSetter);
1254 } 1257 }
1255 } 1258 }
1256 let Iterable$ = dart.generic(function(E) { 1259 let Iterable$ = dart.generic(function(E) {
1260 dart.defineExtensionNames([
1261 'join'
1262 ]);
1257 class Iterable extends Object { 1263 class Iterable extends Object {
1258 Iterable() { 1264 Iterable() {
1259 } 1265 }
1260 static generate(count, generator) { 1266 static generate(count, generator) {
1261 if (generator === void 0) 1267 if (generator === void 0)
1262 generator = null; 1268 generator = null;
1263 if (dart.notNull(count) <= 0) 1269 if (dart.notNull(count) <= 0)
1264 return new (_internal.EmptyIterable$(E))(); 1270 return new (_internal.EmptyIterable$(E))();
1265 return new (exports._GeneratorIterable$(E))(count, generator); 1271 return new (exports._GeneratorIterable$(E))(count, generator);
1266 } 1272 }
(...skipping 2091 matching lines...) Expand 10 before | Expand all | Expand 10 after
3358 exports.StackTrace = StackTrace; 3364 exports.StackTrace = StackTrace;
3359 exports.Stopwatch = Stopwatch; 3365 exports.Stopwatch = Stopwatch;
3360 exports.String = String; 3366 exports.String = String;
3361 exports.RuneIterator = RuneIterator; 3367 exports.RuneIterator = RuneIterator;
3362 exports.StringBuffer = StringBuffer; 3368 exports.StringBuffer = StringBuffer;
3363 exports.StringSink = StringSink; 3369 exports.StringSink = StringSink;
3364 exports.Symbol = Symbol; 3370 exports.Symbol = Symbol;
3365 exports.Type = Type; 3371 exports.Type = Type;
3366 exports.Uri = Uri; 3372 exports.Uri = Uri;
3367 }); 3373 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698