@@ -23,7 +23,7 @@ self._domHoist = function(element, targetQuery) {
23
23
self._domRemove = function(element) {
24
24
element.parentNode.removeChild(element);
25
25
};
26
- // Generated by dart2js (CSP), the Dart to JavaScript compiler version: 1.14.2 .
26
+ // Generated by dart2js (CSP), the Dart to JavaScript compiler version: 1.15.0-dev.2.0 .
27
27
// The code supports the following hooks:
28
28
// dartPrint(message):
29
29
// if this function is defined it is called instead of the Dart [print]
@@ -3144,16 +3144,17 @@ self._domRemove = function(element) {
3144
3144
$desc = $collectedClasses$.IntegerDivisionByZeroException[1];
3145
3145
IntegerDivisionByZeroException.prototype = $desc;
3146
3146
IntegerDivisionByZeroException.$__fields__ = [];
3147
- function Expando(name) {
3147
+ function Expando(name, _jsWeakMapOrKey ) {
3148
3148
this.name = name;
3149
+ this._jsWeakMapOrKey = _jsWeakMapOrKey;
3149
3150
this.$deferredAction();
3150
3151
}
3151
3152
Expando.builtin$cls = "Expando";
3152
3153
if (!("name" in Expando))
3153
3154
Expando.name = "Expando";
3154
3155
$desc = $collectedClasses$.Expando[1];
3155
3156
Expando.prototype = $desc;
3156
- Expando.$__fields__ = ["name"];
3157
+ Expando.$__fields__ = ["name", "_jsWeakMapOrKey" ];
3157
3158
Expando.prototype.get$name = function(receiver) {
3158
3159
return this.name;
3159
3160
};
@@ -10380,34 +10381,19 @@ self._domRemove = function(element) {
10380
10381
return this._async$_controller;
10381
10382
},
10382
10383
_expectsEvent$1: function(eventId) {
10383
- var t1 = this._eventState;
10384
- if (typeof t1 !== "number")
10385
- return t1.$and();
10386
- return (t1 & 1) === eventId;
10384
+ return (this._eventState & 1) === eventId;
10387
10385
},
10388
10386
_toggleEventId$0: function() {
10389
- var t1 = this._eventState;
10390
- if (typeof t1 !== "number")
10391
- return t1.$xor();
10392
- this._eventState = t1 ^ 1;
10387
+ this._eventState ^= 1;
10393
10388
},
10394
10389
get$_isFiring: function() {
10395
- var t1 = this._eventState;
10396
- if (typeof t1 !== "number")
10397
- return t1.$and();
10398
- return (t1 & 2) !== 0;
10390
+ return (this._eventState & 2) !== 0;
10399
10391
},
10400
10392
_setRemoveAfterFiring$0: function() {
10401
- var t1 = this._eventState;
10402
- if (typeof t1 !== "number")
10403
- return t1.$or();
10404
- this._eventState = t1 | 4;
10393
+ this._eventState |= 4;
10405
10394
},
10406
10395
get$_removeAfterFiring: function() {
10407
- var t1 = this._eventState;
10408
- if (typeof t1 !== "number")
10409
- return t1.$and();
10410
- return (t1 & 4) !== 0;
10396
+ return (this._eventState & 4) !== 0;
10411
10397
},
10412
10398
_onPause$0: [function() {
10413
10399
}, "call$0", "get$_onPause", 0, 0, 2],
@@ -10449,7 +10435,7 @@ self._domRemove = function(element) {
10449
10435
return t1;
10450
10436
}
10451
10437
t1 = $.Zone__current;
10452
- subscription = new P._BroadcastSubscription(null , null, null, this, null, null, null, t1, cancelOnError ? 1 : 0, null, null);
10438
+ subscription = new P._BroadcastSubscription(0 , null, null, this, null, null, null, t1, cancelOnError ? 1 : 0, null, null);
10453
10439
subscription.$builtinTypeInfo = this.$builtinTypeInfo;
10454
10440
subscription._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError, H.getTypeArgumentByIndex(this, 0));
10455
10441
subscription._async$_previous = subscription;
@@ -10500,19 +10486,13 @@ self._domRemove = function(element) {
10500
10486
this._state = t1 ^ 3;
10501
10487
for (; link !== this;)
10502
10488
if (link._expectsEvent$1(id)) {
10503
- t1 = link.get$_eventState();
10504
- if (typeof t1 !== "number")
10505
- return t1.$or();
10506
- link.set$_eventState(t1 | 2);
10489
+ link.set$_eventState(link.get$_eventState() | 2);
10507
10490
action.call$1(link);
10508
10491
link._toggleEventId$0();
10509
10492
link0 = link.get$_async$_next();
10510
10493
if (link.get$_removeAfterFiring())
10511
10494
this._removeListener$1(link);
10512
- t1 = link.get$_eventState();
10513
- if (typeof t1 !== "number")
10514
- return t1.$and();
10515
- link.set$_eventState(t1 & 4294967293);
10495
+ link.set$_eventState(link.get$_eventState() & 4294967293);
10516
10496
link = link0;
10517
10497
} else
10518
10498
link = link.get$_async$_next();
@@ -13543,8 +13523,8 @@ self._domRemove = function(element) {
13543
13523
P.RangeError_checkValidRange(start, end, stringLength, null, null, null);
13544
13524
$length = stringLength - start;
13545
13525
if ($length === 0)
13546
- return new Uint8Array(0 );
13547
- t1 = $length * 3;
13526
+ return new Uint8Array(H._checkLength(0) );
13527
+ t1 = H._checkLength( $length * 3) ;
13548
13528
t2 = new Uint8Array(t1);
13549
13529
encoder = new P._Utf8Encoder(0, 0, t2);
13550
13530
if (encoder._fillBuffer$3(string, start, stringLength) !== stringLength)
@@ -14089,32 +14069,34 @@ self._domRemove = function(element) {
14089
14069
}
14090
14070
},
14091
14071
Expando: {
14092
- "^": "Object;name>",
14072
+ "^": "Object;name>,_jsWeakMapOrKey ",
14093
14073
toString$0: function(_) {
14094
14074
return "Expando:" + H.S(this.name);
14095
14075
},
14096
14076
$index: function(_, object) {
14097
- var values = H.Primitives_getProperty(object, "expando$values");
14098
- return values == null ? null : H.Primitives_getProperty(values, this._getKey$0());
14077
+ var t1, values;
14078
+ t1 = this._jsWeakMapOrKey;
14079
+ if (typeof t1 !== "string") {
14080
+ if (object == null || typeof object === "boolean" || typeof object === "number" || typeof object === "string")
14081
+ H.throwExpression(P.ArgumentError$value(object, "Expandos are not allowed on strings, numbers, booleans or null", null));
14082
+ return t1.get(object);
14083
+ }
14084
+ values = H.Primitives_getProperty(object, "expando$values");
14085
+ return values == null ? null : H.Primitives_getProperty(values, t1);
14099
14086
},
14100
14087
$indexSet: function(_, object, value) {
14101
- var values = H.Primitives_getProperty(object, "expando$values");
14102
- if (values == null) {
14103
- values = new P.Object();
14104
- H.Primitives_setProperty(object, "expando$values", values);
14105
- }
14106
- H.Primitives_setProperty(values, this._getKey$0(), value);
14107
- },
14108
- _getKey$0: function() {
14109
- var key, t1;
14110
- key = H.Primitives_getProperty(this, "expando$key");
14111
- if (key == null) {
14112
- t1 = $.Expando__keyCount;
14113
- $.Expando__keyCount = t1 + 1;
14114
- key = "expando$key$" + t1;
14115
- H.Primitives_setProperty(this, "expando$key", key);
14088
+ var t1, values;
14089
+ t1 = this._jsWeakMapOrKey;
14090
+ if (typeof t1 !== "string")
14091
+ t1.set(object, value);
14092
+ else {
14093
+ values = H.Primitives_getProperty(object, "expando$values");
14094
+ if (values == null) {
14095
+ values = new P.Object();
14096
+ H.Primitives_setProperty(object, "expando$values", values);
14097
+ }
14098
+ H.Primitives_setProperty(values, t1, value);
14116
14099
}
14117
- return key;
14118
14100
}
14119
14101
},
14120
14102
Function: {
@@ -15308,6 +15290,9 @@ self._domRemove = function(element) {
15308
15290
}
15309
15291
}], ["dart.typed_data.implementation", "dart:_native_typed_data",, H, {
15310
15292
"^": "",
15293
+ _checkLength: function($length) {
15294
+ return $length;
15295
+ },
15311
15296
_checkValidRange: function(start, end, $length) {
15312
15297
var t1;
15313
15298
if (!(start >>> 0 !== start))
@@ -16924,7 +16909,14 @@ self._domRemove = function(element) {
16924
16909
}, "DART_CLOSURE_PROPERTY_NAME", "IsolateNatives_thisScript", "$get$IsolateNatives_thisScript", function() {
16925
16910
return H.IsolateNatives_computeThisScript();
16926
16911
}, "IsolateNatives_thisScript", "IsolateNatives_workerIds", "$get$IsolateNatives_workerIds", function() {
16927
- return H.setRuntimeTypeInfo(new P.Expando(null), [P.$int]);
16912
+ if (typeof WeakMap == "function")
16913
+ var t1 = new WeakMap();
16914
+ else {
16915
+ t1 = $.Expando__keyCount;
16916
+ $.Expando__keyCount = t1 + 1;
16917
+ t1 = "expando$key$" + t1;
16918
+ }
16919
+ return H.setRuntimeTypeInfo(new P.Expando(null, t1), [P.$int]);
16928
16920
}, "IsolateNatives_workerIds", "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", function() {
16929
16921
return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({
16930
16922
toString: function() {
0 commit comments