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

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

Issue 1348453004: fix some errors in our SDK, mostly around numbers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: format Created 5 years, 3 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.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';
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 Duration.MILLISECONDS_PER_HOUR = dart.notNull(Duration.MILLISECONDS_PER_MINUTE ) * dart.notNull(Duration.MINUTES_PER_HOUR); 600 Duration.MILLISECONDS_PER_HOUR = dart.notNull(Duration.MILLISECONDS_PER_MINUTE ) * dart.notNull(Duration.MINUTES_PER_HOUR);
601 Duration.MILLISECONDS_PER_DAY = dart.notNull(Duration.MILLISECONDS_PER_HOUR) * dart.notNull(Duration.HOURS_PER_DAY); 601 Duration.MILLISECONDS_PER_DAY = dart.notNull(Duration.MILLISECONDS_PER_HOUR) * dart.notNull(Duration.HOURS_PER_DAY);
602 Duration.SECONDS_PER_HOUR = dart.notNull(Duration.SECONDS_PER_MINUTE) * dart.n otNull(Duration.MINUTES_PER_HOUR); 602 Duration.SECONDS_PER_HOUR = dart.notNull(Duration.SECONDS_PER_MINUTE) * dart.n otNull(Duration.MINUTES_PER_HOUR);
603 Duration.SECONDS_PER_DAY = dart.notNull(Duration.SECONDS_PER_HOUR) * dart.notN ull(Duration.HOURS_PER_DAY); 603 Duration.SECONDS_PER_DAY = dart.notNull(Duration.SECONDS_PER_HOUR) * dart.notN ull(Duration.HOURS_PER_DAY);
604 Duration.MINUTES_PER_DAY = dart.notNull(Duration.MINUTES_PER_HOUR) * dart.notN ull(Duration.HOURS_PER_DAY); 604 Duration.MINUTES_PER_DAY = dart.notNull(Duration.MINUTES_PER_HOUR) * dart.notN ull(Duration.HOURS_PER_DAY);
605 Duration.ZERO = dart.const(new Duration({seconds: 0})); 605 Duration.ZERO = dart.const(new Duration({seconds: 0}));
606 class Error extends Object { 606 class Error extends Object {
607 Error() { 607 Error() {
608 } 608 }
609 static safeToString(object) { 609 static safeToString(object) {
610 if (dart.is(object, num) || typeof object == 'boolean' || null == object) { 610 if (typeof object == 'number' || typeof object == 'boolean' || null == obj ect) {
611 return dart.toString(object); 611 return dart.toString(object);
612 } 612 }
613 if (typeof object == 'string') { 613 if (typeof object == 'string') {
614 return Error._stringToSafeString(object); 614 return Error._stringToSafeString(object);
615 } 615 }
616 return Error._objectToString(object); 616 return Error._objectToString(object);
617 } 617 }
618 static _stringToSafeString(string) { 618 static _stringToSafeString(string) {
619 return _js_helper.jsonEncodeNative(string); 619 return _js_helper.jsonEncodeNative(string);
620 } 620 }
(...skipping 2745 matching lines...) Expand 10 before | Expand all | Expand 10 after
3366 exports.StackTrace = StackTrace; 3366 exports.StackTrace = StackTrace;
3367 exports.Stopwatch = Stopwatch; 3367 exports.Stopwatch = Stopwatch;
3368 exports.String = String; 3368 exports.String = String;
3369 exports.RuneIterator = RuneIterator; 3369 exports.RuneIterator = RuneIterator;
3370 exports.StringBuffer = StringBuffer; 3370 exports.StringBuffer = StringBuffer;
3371 exports.StringSink = StringSink; 3371 exports.StringSink = StringSink;
3372 exports.Symbol = Symbol; 3372 exports.Symbol = Symbol;
3373 exports.Type = Type; 3373 exports.Type = Type;
3374 exports.Uri = Uri; 3374 exports.Uri = Uri;
3375 }); 3375 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698