Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

Commit 2614aca

Browse files
author
John Messerly
committed
1 parent 9027fd9 commit 2614aca

File tree

12 files changed

+211
-143
lines changed

12 files changed

+211
-143
lines changed

lib/runtime/dart/_interceptors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ var _interceptors;
720720
if (times == 1 || this.length == 0)
721721
return this;
722722
if (!dart.equals(times, times >>> 0)) {
723-
throw new core.OutOfMemoryError();
723+
throw dart.const(new core.OutOfMemoryError());
724724
}
725725
let result = '';
726726
let s = this;

lib/runtime/dart/_internal.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ var _internal;
510510
ExpandIterator(iterator, f) {
511511
this[_iterator] = iterator;
512512
this[_f] = f;
513-
this[_currentExpansion] = new (EmptyIterator$(T))();
513+
this[_currentExpansion] = dart.const(new (EmptyIterator$(T))());
514514
this[_current] = null;
515515
}
516516
[_nextExpansion]() {}
@@ -757,7 +757,7 @@ var _internal;
757757
super.IterableBase();
758758
}
759759
get [core.$iterator]() {
760-
return new (EmptyIterator$(E))();
760+
return dart.const(new (EmptyIterator$(E))());
761761
}
762762
[core.$forEach](action) {}
763763
get [core.$isEmpty]() {
@@ -814,7 +814,7 @@ var _internal;
814814
return this;
815815
}
816816
[core.$map](f) {
817-
return new EmptyIterable();
817+
return dart.const(new EmptyIterable());
818818
}
819819
[core.$reduce](combine) {
820820
throw IterableElementError.noElement();
@@ -1899,7 +1899,7 @@ var _internal;
18991899
return new core.RegExp(`^(?:${Symbol.operatorRE}$|${Symbol.identifierRE}(?:=?$|[.](?!$)))+?$`);
19001900
}
19011901
});
1902-
let POWERS_OF_TEN = /* Unimplemented const */[1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, 10000000.0, 100000000.0, 1000000000.0, 10000000000.0, 100000000000.0, 1000000000000.0, 10000000000000.0, 100000000000000.0, 1000000000000000.0, 10000000000000000.0, 100000000000000000.0, 1000000000000000000.0, 10000000000000000000.0, 100000000000000000000.0, 1e+21, 1e+22];
1902+
let POWERS_OF_TEN = dart.const([1.0, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, 10000000.0, 100000000.0, 1000000000.0, 10000000000.0, 100000000000.0, 1000000000000.0, 10000000000000.0, 100000000000000.0, 1000000000000000.0, 10000000000000000.0, 100000000000000000.0, 1000000000000000000.0, 10000000000000000000.0, 100000000000000000000.0, 1e+21, 1e+22]);
19031903
// Exports:
19041904
exports.EfficientLength = EfficientLength;
19051905
exports.ListIterable$ = ListIterable$;

lib/runtime/dart/_js_helper.js

Lines changed: 16 additions & 16 deletions
Large diffs are not rendered by default.

lib/runtime/dart/async.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,7 +1060,7 @@ var async;
10601060
if (this[_canFire]) {
10611061
this[_sendDone]();
10621062
} else {
1063-
this[_addPending](new _DelayedDone());
1063+
this[_addPending](dart.const(new _DelayedDone()));
10641064
}
10651065
}
10661066
[_onPause]() {
@@ -1536,7 +1536,7 @@ var async;
15361536
if (!dart.notNull(this[_isEmpty])) {
15371537
for (let link = this[_next]; !dart.notNull(core.identical(link, this)); link = link[_next]) {
15381538
let subscription = dart.as(link, _BroadcastSubscription$(T));
1539-
subscription[_addPending](new _DelayedDone());
1539+
subscription[_addPending](dart.const(new _DelayedDone()));
15401540
}
15411541
} else {
15421542
dart.assert(this[_doneFuture] != null);
@@ -1590,7 +1590,7 @@ var async;
15901590
}
15911591
close() {
15921592
if (!dart.notNull(this.isClosed) && dart.notNull(this[_isFiring])) {
1593-
this[_addPendingEvent](new _DelayedDone());
1593+
this[_addPendingEvent](dart.const(new _DelayedDone()));
15941594
this[_state] = dart.notNull(this[_state]) | dart.notNull(_BroadcastStreamController[_STATE_CLOSED]);
15951595
return super.done;
15961596
}
@@ -1803,7 +1803,7 @@ var async;
18031803
}, {onError: handleError});
18041804
}
18051805
if (remaining == 0) {
1806-
return new Future$(core.List).value(/* Unimplemented const */[]);
1806+
return new Future$(core.List).value(dart.const([]));
18071807
}
18081808
values = new core.List(remaining);
18091809
return result;
@@ -2896,7 +2896,7 @@ var async;
28962896
if (this.hasListener) {
28972897
this[_sendDone]();
28982898
} else if (this[_isInitialState]) {
2899-
this[_ensurePendingEvents]().add(new _DelayedDone());
2899+
this[_ensurePendingEvents]().add(dart.const(new _DelayedDone()));
29002900
}
29012901
}
29022902
[_add](value) {
@@ -3025,7 +3025,7 @@ var async;
30253025
this[_subscription][_addPending](new _DelayedError(error, stackTrace));
30263026
}
30273027
[_sendDone]() {
3028-
this[_subscription][_addPending](new _DelayedDone());
3028+
this[_subscription][_addPending](dart.const(new _DelayedDone()));
30293029
}
30303030
}
30313031
_AsyncStreamControllerDispatch[dart.implements] = () => [_StreamController$(T)];
@@ -4915,7 +4915,7 @@ var async;
49154915
function _rootFork(self, parent, zone, specification, zoneValues) {
49164916
_internal.printToZone = _printToZone;
49174917
if (specification == null) {
4918-
specification = new ZoneSpecification();
4918+
specification = dart.const(new ZoneSpecification());
49194919
} else if (!dart.is(specification, _ZoneSpecification)) {
49204920
throw new core.ArgumentError("ZoneSpecifications must be instantiated" + " with the provided constructor.");
49214921
}
@@ -4980,43 +4980,43 @@ var async;
49804980
super._Zone();
49814981
}
49824982
get [_run]() {
4983-
return new _ZoneFunction(_ROOT_ZONE, _rootRun);
4983+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootRun));
49844984
}
49854985
get [_runUnary]() {
4986-
return new _ZoneFunction(_ROOT_ZONE, _rootRunUnary);
4986+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootRunUnary));
49874987
}
49884988
get [_runBinary]() {
4989-
return new _ZoneFunction(_ROOT_ZONE, _rootRunBinary);
4989+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootRunBinary));
49904990
}
49914991
get [_registerCallback]() {
4992-
return new _ZoneFunction(_ROOT_ZONE, _rootRegisterCallback);
4992+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootRegisterCallback));
49934993
}
49944994
get [_registerUnaryCallback]() {
4995-
return new _ZoneFunction(_ROOT_ZONE, _rootRegisterUnaryCallback);
4995+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootRegisterUnaryCallback));
49964996
}
49974997
get [_registerBinaryCallback]() {
4998-
return new _ZoneFunction(_ROOT_ZONE, _rootRegisterBinaryCallback);
4998+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootRegisterBinaryCallback));
49994999
}
50005000
get [_errorCallback]() {
5001-
return new _ZoneFunction(_ROOT_ZONE, _rootErrorCallback);
5001+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootErrorCallback));
50025002
}
50035003
get [_scheduleMicrotask]() {
5004-
return new _ZoneFunction(_ROOT_ZONE, _rootScheduleMicrotask);
5004+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootScheduleMicrotask));
50055005
}
50065006
get [_createTimer]() {
5007-
return new _ZoneFunction(_ROOT_ZONE, _rootCreateTimer);
5007+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootCreateTimer));
50085008
}
50095009
get [_createPeriodicTimer]() {
5010-
return new _ZoneFunction(_ROOT_ZONE, _rootCreatePeriodicTimer);
5010+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootCreatePeriodicTimer));
50115011
}
50125012
get [_print]() {
5013-
return new _ZoneFunction(_ROOT_ZONE, _rootPrint);
5013+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootPrint));
50145014
}
50155015
get [_fork]() {
5016-
return new _ZoneFunction(_ROOT_ZONE, _rootFork);
5016+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootFork));
50175017
}
50185018
get [_handleUncaughtError]() {
5019-
return new _ZoneFunction(_ROOT_ZONE, _rootHandleUncaughtError);
5019+
return dart.const(new _ZoneFunction(_ROOT_ZONE, _rootHandleUncaughtError));
50205020
}
50215021
get parent() {
50225022
return null;
@@ -5150,7 +5150,7 @@ var async;
51505150
},
51515151
set _rootMap(_) {}
51525152
});
5153-
let _ROOT_ZONE = new _RootZone();
5153+
let _ROOT_ZONE = dart.const(new _RootZone());
51545154
// Function runZoned: (() → dynamic, {zoneValues: Map<dynamic, dynamic>, zoneSpecification: ZoneSpecification, onError: Function}) → dynamic
51555155
function runZoned(body, opts) {
51565156
let zoneValues = opts && 'zoneValues' in opts ? opts.zoneValues : null;

lib/runtime/dart/convert.js

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var convert;
22
(function(exports) {
33
'use strict';
4-
let ASCII = new AsciiCodec();
4+
let ASCII = dart.const(new AsciiCodec());
55
let _ASCII_MASK = 127;
66
let _allowInvalid = Symbol('_allowInvalid');
77
let _nameToEncoding = Symbol('_nameToEncoding');
@@ -62,16 +62,16 @@ var convert;
6262
if (allowInvalid == null)
6363
allowInvalid = this[_allowInvalid];
6464
if (allowInvalid) {
65-
return new AsciiDecoder({allowInvalid: true}).convert(bytes);
65+
return dart.const(new AsciiDecoder({allowInvalid: true})).convert(bytes);
6666
} else {
67-
return new AsciiDecoder({allowInvalid: false}).convert(bytes);
67+
return dart.const(new AsciiDecoder({allowInvalid: false})).convert(bytes);
6868
}
6969
}
7070
get encoder() {
71-
return new AsciiEncoder();
71+
return dart.const(new AsciiEncoder());
7272
}
7373
get decoder() {
74-
return this[_allowInvalid] ? new AsciiDecoder({allowInvalid: true}) : new AsciiDecoder({allowInvalid: false});
74+
return this[_allowInvalid] ? dart.const(new AsciiDecoder({allowInvalid: true})) : dart.const(new AsciiDecoder({allowInvalid: false}));
7575
}
7676
}
7777
let _subsetMask = Symbol('_subsetMask');
@@ -280,7 +280,7 @@ var convert;
280280
if ((dart.notNull(source[core.$get](i)) & ~dart.notNull(_ASCII_MASK)) != 0) {
281281
if (dart.notNull(i) > dart.notNull(start))
282282
this[_utf8Sink].addSlice(source, start, i, false);
283-
this[_utf8Sink].add(/* Unimplemented const */dart.setType([239, 191, 189], core.List$(core.int)));
283+
this[_utf8Sink].add(dart.const(dart.setType([239, 191, 189], core.List$(core.int))));
284284
start = dart.notNull(i) + 1;
285285
}
286286
}
@@ -488,7 +488,7 @@ var convert;
488488
return _FusedConverter;
489489
});
490490
let _FusedConverter = _FusedConverter$();
491-
let HTML_ESCAPE = new HtmlEscape();
491+
let HTML_ESCAPE = dart.const(new HtmlEscape());
492492
let _ = Symbol('_');
493493
let _name = Symbol('_name');
494494
class HtmlEscapeMode extends core.Object {
@@ -504,9 +504,9 @@ var convert;
504504
}
505505
}
506506
dart.defineNamedConstructor(HtmlEscapeMode, _);
507-
HtmlEscapeMode.UNKNOWN = new HtmlEscapeMode[_]('unknown', true, true, true, true);
508-
HtmlEscapeMode.ATTRIBUTE = new HtmlEscapeMode[_]('attribute', false, true, false, false);
509-
HtmlEscapeMode.ELEMENT = new HtmlEscapeMode[_]('element', true, false, false, true);
507+
HtmlEscapeMode.UNKNOWN = dart.const(new HtmlEscapeMode[_]('unknown', true, true, true, true));
508+
HtmlEscapeMode.ATTRIBUTE = dart.const(new HtmlEscapeMode[_]('attribute', false, true, false, false));
509+
HtmlEscapeMode.ELEMENT = dart.const(new HtmlEscapeMode[_]('element', true, false, false, true));
510510
let _convert = Symbol('_convert');
511511
class HtmlEscape extends Converter$(core.String, core.String) {
512512
HtmlEscape(mode) {
@@ -626,7 +626,7 @@ var convert;
626626
return "Cyclic error in JSON stringify";
627627
}
628628
}
629-
let JSON = new JsonCodec();
629+
let JSON = dart.const(new JsonCodec());
630630
let _Reviver = dart.typedef('_Reviver', () => dart.functionType(dart.dynamic, [dart.dynamic, dart.dynamic]));
631631
let _ToEncodable = dart.typedef('_ToEncodable', () => dart.functionType(dart.dynamic, [dart.dynamic]));
632632
let _reviver = Symbol('_reviver');
@@ -660,12 +660,12 @@ var convert;
660660
}
661661
get encoder() {
662662
if (this[_toEncodable$] == null)
663-
return new JsonEncoder();
663+
return dart.const(new JsonEncoder());
664664
return new JsonEncoder(dart.as(this[_toEncodable$], dart.functionType(core.Object, [core.Object])));
665665
}
666666
get decoder() {
667667
if (this[_reviver] == null)
668-
return new JsonDecoder();
668+
return dart.const(new JsonDecoder());
669669
return new JsonDecoder(this[_reviver]);
670670
}
671671
}
@@ -1263,7 +1263,7 @@ var convert;
12631263
let __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.Object, [core.Object]));
12641264
let __CastType2 = dart.typedef('__CastType2', () => dart.functionType(dart.dynamic, [dart.dynamic]));
12651265
let __CastType4 = dart.typedef('__CastType4', () => dart.functionType(dart.dynamic, [core.Object]));
1266-
let LATIN1 = new Latin1Codec();
1266+
let LATIN1 = dart.const(new Latin1Codec());
12671267
let _LATIN1_MASK = 255;
12681268
class Latin1Codec extends Encoding {
12691269
Latin1Codec(opts) {
@@ -1279,16 +1279,16 @@ var convert;
12791279
if (allowInvalid == null)
12801280
allowInvalid = this[_allowInvalid];
12811281
if (allowInvalid) {
1282-
return new Latin1Decoder({allowInvalid: true}).convert(bytes);
1282+
return dart.const(new Latin1Decoder({allowInvalid: true})).convert(bytes);
12831283
} else {
1284-
return new Latin1Decoder({allowInvalid: false}).convert(bytes);
1284+
return dart.const(new Latin1Decoder({allowInvalid: false})).convert(bytes);
12851285
}
12861286
}
12871287
get encoder() {
1288-
return new Latin1Encoder();
1288+
return dart.const(new Latin1Encoder());
12891289
}
12901290
get decoder() {
1291-
return this[_allowInvalid] ? new Latin1Decoder({allowInvalid: true}) : new Latin1Decoder({allowInvalid: false});
1291+
return this[_allowInvalid] ? dart.const(new Latin1Decoder({allowInvalid: true})) : dart.const(new Latin1Decoder({allowInvalid: false}));
12921292
}
12931293
}
12941294
class Latin1Encoder extends _UnicodeSubsetEncoder {
@@ -1356,7 +1356,7 @@ var convert;
13561356
if (dart.notNull(char) > dart.notNull(_LATIN1_MASK) || dart.notNull(char) < 0) {
13571357
if (dart.notNull(i) > dart.notNull(start))
13581358
this[_addSliceToSink](source, start, i, false);
1359-
this[_addSliceToSink](/* Unimplemented const */dart.setType([65533], core.List$(core.int)), 0, 1, false);
1359+
this[_addSliceToSink](dart.const(dart.setType([65533], core.List$(core.int))), 0, 1, false);
13601360
start = dart.notNull(i) + 1;
13611361
}
13621362
}
@@ -1673,7 +1673,7 @@ var convert;
16731673
dart.defineNamedConstructor(_Utf8ConversionSink, _);
16741674
let UNICODE_REPLACEMENT_CHARACTER_RUNE = 65533;
16751675
let UNICODE_BOM_CHARACTER_RUNE = 65279;
1676-
let UTF8 = new Utf8Codec();
1676+
let UTF8 = dart.const(new Utf8Codec());
16771677
let _allowMalformed = Symbol('_allowMalformed');
16781678
class Utf8Codec extends Encoding {
16791679
Utf8Codec(opts) {
@@ -2123,7 +2123,7 @@ var convert;
21232123
}
21242124
}
21252125
}
2126-
_Utf8Decoder._LIMITS = /* Unimplemented const */dart.setType([_ONE_BYTE_LIMIT, _TWO_BYTE_LIMIT, _THREE_BYTE_LIMIT, _FOUR_BYTE_LIMIT], core.List$(core.int));
2126+
_Utf8Decoder._LIMITS = dart.const(dart.setType([_ONE_BYTE_LIMIT, _TWO_BYTE_LIMIT, _THREE_BYTE_LIMIT, _FOUR_BYTE_LIMIT], core.List$(core.int)));
21272127
let _processed = Symbol('_processed');
21282128
let _computeKeys = Symbol('_computeKeys');
21292129
let _original = Symbol('_original');

lib/runtime/dart/core.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ var core;
5454
_Override() {
5555
}
5656
}
57-
let deprecated = new Deprecated("next release");
58-
let override = new _Override();
57+
let deprecated = dart.const(new Deprecated("next release"));
58+
let override = dart.const(new _Override());
5959
class _Proxy extends Object {
6060
_Proxy() {
6161
}
6262
}
63-
let proxy = new _Proxy();
63+
let proxy = dart.const(new _Proxy());
6464
class bool extends Object {
6565
fromEnvironment(name, opts) {
6666
let defaultValue = opts && 'defaultValue' in opts ? opts.defaultValue : false;
@@ -549,7 +549,7 @@ var core;
549549
Duration.SECONDS_PER_HOUR = dart.notNull(Duration.SECONDS_PER_MINUTE) * dart.notNull(Duration.MINUTES_PER_HOUR);
550550
Duration.SECONDS_PER_DAY = dart.notNull(Duration.SECONDS_PER_HOUR) * dart.notNull(Duration.HOURS_PER_DAY);
551551
Duration.MINUTES_PER_DAY = dart.notNull(Duration.MINUTES_PER_HOUR) * dart.notNull(Duration.HOURS_PER_DAY);
552-
Duration.ZERO = new Duration({seconds: 0});
552+
Duration.ZERO = dart.const(new Duration({seconds: 0}));
553553
let _stringToSafeString = dart.JsSymbol('_stringToSafeString');
554554
let _objectToString = dart.JsSymbol('_objectToString');
555555
class Error extends Object {
@@ -2554,7 +2554,7 @@ var core;
25542554
get pathSegments() {
25552555
if (this[_pathSegments] == null) {
25562556
let pathToSplit = !dart.notNull(this.path.isEmpty) && this.path.codeUnitAt(0) == Uri[_SLASH] ? this.path.substring(1) : this.path;
2557-
this[_pathSegments] = new collection.UnmodifiableListView(pathToSplit == "" ? /* Unimplemented const */dart.setType([], List$(String)) : pathToSplit.split("/")[$map](dart.bind(Uri, 'decodeComponent'))[$toList]({growable: false}));
2557+
this[_pathSegments] = new collection.UnmodifiableListView(pathToSplit == "" ? dart.const(dart.setType([], List$(String))) : pathToSplit.split("/")[$map](dart.bind(Uri, 'decodeComponent'))[$toList]({growable: false}));
25582558
}
25592559
return this[_pathSegments];
25602560
}
@@ -3372,18 +3372,18 @@ var core;
33723372
Uri._LOWER_CASE_F = 102;
33733373
Uri._LOWER_CASE_Z = 122;
33743374
Uri._BAR = 124;
3375-
Uri._unreservedTable = /* Unimplemented const */[0, 0, 24576, 1023, 65534, 34815, 65534, 18431];
3376-
Uri._unreserved2396Table = /* Unimplemented const */[0, 0, 26498, 1023, 65534, 34815, 65534, 18431];
3377-
Uri._encodeFullTable = /* Unimplemented const */[0, 0, 65498, 45055, 65535, 34815, 65534, 18431];
3378-
Uri._schemeTable = /* Unimplemented const */[0, 0, 26624, 1023, 65534, 2047, 65534, 2047];
3379-
Uri._schemeLowerTable = /* Unimplemented const */[0, 0, 26624, 1023, 0, 0, 65534, 2047];
3380-
Uri._subDelimitersTable = /* Unimplemented const */[0, 0, 32722, 11263, 65534, 34815, 65534, 18431];
3381-
Uri._genDelimitersTable = /* Unimplemented const */[0, 0, 32776, 33792, 1, 10240, 0, 0];
3382-
Uri._userinfoTable = /* Unimplemented const */[0, 0, 32722, 12287, 65534, 34815, 65534, 18431];
3383-
Uri._regNameTable = /* Unimplemented const */[0, 0, 32754, 11263, 65534, 34815, 65534, 18431];
3384-
Uri._pathCharTable = /* Unimplemented const */[0, 0, 32722, 12287, 65535, 34815, 65534, 18431];
3385-
Uri._pathCharOrSlashTable = /* Unimplemented const */[0, 0, 65490, 12287, 65535, 34815, 65534, 18431];
3386-
Uri._queryCharTable = /* Unimplemented const */[0, 0, 65490, 45055, 65535, 34815, 65534, 18431];
3375+
Uri._unreservedTable = dart.const([0, 0, 24576, 1023, 65534, 34815, 65534, 18431]);
3376+
Uri._unreserved2396Table = dart.const([0, 0, 26498, 1023, 65534, 34815, 65534, 18431]);
3377+
Uri._encodeFullTable = dart.const([0, 0, 65498, 45055, 65535, 34815, 65534, 18431]);
3378+
Uri._schemeTable = dart.const([0, 0, 26624, 1023, 65534, 2047, 65534, 2047]);
3379+
Uri._schemeLowerTable = dart.const([0, 0, 26624, 1023, 0, 0, 65534, 2047]);
3380+
Uri._subDelimitersTable = dart.const([0, 0, 32722, 11263, 65534, 34815, 65534, 18431]);
3381+
Uri._genDelimitersTable = dart.const([0, 0, 32776, 33792, 1, 10240, 0, 0]);
3382+
Uri._userinfoTable = dart.const([0, 0, 32722, 12287, 65534, 34815, 65534, 18431]);
3383+
Uri._regNameTable = dart.const([0, 0, 32754, 11263, 65534, 34815, 65534, 18431]);
3384+
Uri._pathCharTable = dart.const([0, 0, 32722, 12287, 65535, 34815, 65534, 18431]);
3385+
Uri._pathCharOrSlashTable = dart.const([0, 0, 65490, 12287, 65535, 34815, 65534, 18431]);
3386+
Uri._queryCharTable = dart.const([0, 0, 65490, 45055, 65535, 34815, 65534, 18431]);
33873387
// Function _symbolToString: (Symbol) → String
33883388
function _symbolToString(symbol) {
33893389
return _internal.Symbol.getName(dart.as(symbol, _internal.Symbol));

lib/runtime/dart/math.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ var math;
6666
Random(seed) {
6767
if (seed === void 0)
6868
seed = null;
69-
return seed == null ? new _JSRandom() : new _Random(seed);
69+
return seed == null ? dart.const(new _JSRandom()) : new _Random(seed);
7070
}
7171
}
7272
let _RectangleBase$ = dart.generic(function(T) {

0 commit comments

Comments
 (0)