diff --git a/dwds/lib/src/injected/client.js b/dwds/lib/src/injected/client.js index 29409e86e..8e6635ca1 100644 --- a/dwds/lib/src/injected/client.js +++ b/dwds/lib/src/injected/client.js @@ -1,4 +1,4 @@ -// Generated by dart2js (NullSafetyMode.unsound, csp), the Dart to JavaScript compiler version: 2.17.0-282.0.dev. +// Generated by dart2js (NullSafetyMode.unsound, csp), the Dart to JavaScript compiler version: 2.17.0-266.0.dev. // The code supports the following hooks: // dartPrint(message): // if this function is defined it is called instead of the Dart [print] @@ -9389,11 +9389,6 @@ for (i = 0; i < len; ++i) receiver.push(array[i]); }, - clear$0(receiver) { - if (!!receiver.fixed$length) - A.throwExpression(A.UnsupportedError$("clear")); - receiver.length = 0; - }, forEach$1(receiver, f) { var end, i; A._arrayInstanceType(receiver)._eval$1("~(1)")._as(f); @@ -9547,6 +9542,13 @@ get$length(receiver) { return receiver.length; }, + set$length(receiver, newLength) { + if (!!receiver.fixed$length) + A.throwExpression(A.UnsupportedError$("set length")); + if (newLength < 0) + throw A.wrapException(A.RangeError$range(newLength, 0, null, "newLength", null)); + receiver.length = newLength; + }, $index(receiver, index) { if (!A._isInt(index)) throw A.wrapException(A.diagnoseIndexError(receiver, index)); @@ -14650,7 +14652,7 @@ return false; if (_this._splayCount !== t2._splayCount) { t3 = _this.$ti._eval$1("_SplayTreeIterator.K")._as(B.JSArray_methods.get$last(t1).key); - B.JSArray_methods.clear$0(t1); + B.JSArray_methods.set$length(t1, 0); t2._splay$1(t3); t3 = t2._root; t3.toString; @@ -14857,7 +14859,7 @@ if (t1 === 0) B.JSArray_methods.add$1(keys, ""); else - B.JSArray_methods.clear$0(keys); + B.JSArray_methods.set$length(keys, 0); _this._original = _this._processed = null; return _this._data = result; }, @@ -24188,7 +24190,7 @@ t3.lastPendingEvent = t4; } } - B.JSArray_methods.clear$0(buffer); + B.JSArray_methods.set$length(buffer, 0); } lastSendTime = lastSendTime0; }