| Index: pkg/dev_compiler/lib/js/amd/dart_sdk.js
|
| diff --git a/pkg/dev_compiler/lib/js/amd/dart_sdk.js b/pkg/dev_compiler/lib/js/amd/dart_sdk.js
|
| index 9f77a8d1edd180b87be8fb55ccbd9c9b29661f1b..3b28dc4383f86d75a85af0f91591c57f1838e2df 100644
|
| --- a/pkg/dev_compiler/lib/js/amd/dart_sdk.js
|
| +++ b/pkg/dev_compiler/lib/js/amd/dart_sdk.js
|
| @@ -335,7 +335,6 @@ define([], function() {
|
| let _SplayTreeNodeIterator = () => (_SplayTreeNodeIterator = dart.constFn(collection._SplayTreeNodeIterator$()))();
|
| let SplayTreeSet = () => (SplayTreeSet = dart.constFn(collection.SplayTreeSet$()))();
|
| let dynamicAnddynamicTodynamic = () => (dynamicAnddynamicTodynamic = dart.constFn(dart.functionType(dart.dynamic, [dart.dynamic, dart.dynamic])))();
|
| - let MappedIterableOfString$dynamic = () => (MappedIterableOfString$dynamic = dart.constFn(_internal.MappedIterable$(core.String, dart.dynamic)))();
|
| let SinkOfObject = () => (SinkOfObject = dart.constFn(core.Sink$(core.Object)))();
|
| let Codec = () => (Codec = dart.constFn(convert.Codec$()))();
|
| let ComparableOfString = () => (ComparableOfString = dart.constFn(core.Comparable$(core.String)))();
|
| @@ -469,7 +468,6 @@ define([], function() {
|
| let StreamControllerOfWebSocket = () => (StreamControllerOfWebSocket = dart.constFn(async.StreamController$(io.WebSocket)))();
|
| let FutureOfWebSocket = () => (FutureOfWebSocket = dart.constFn(async.Future$(io.WebSocket)))();
|
| let EventSinkOfListOfint = () => (EventSinkOfListOfint = dart.constFn(async.EventSink$(ListOfint())))();
|
| - let JSArrayOfUint8List = () => (JSArrayOfUint8List = dart.constFn(_interceptors.JSArray$(typed_data.Uint8List)))();
|
| let StreamTransformerOfdynamic$ListOfint = () => (StreamTransformerOfdynamic$ListOfint = dart.constFn(async.StreamTransformer$(dart.dynamic, ListOfint())))();
|
| let MapOfint$_WebSocketImpl = () => (MapOfint$_WebSocketImpl = dart.constFn(core.Map$(core.int, io._WebSocketImpl)))();
|
| let FutureOfIsolate = () => (FutureOfIsolate = dart.constFn(async.Future$(isolate.Isolate)))();
|
| @@ -490,7 +488,6 @@ define([], function() {
|
| let EventTovoid = () => (EventTovoid = dart.constFn(dart.functionType(dart.void, [html$.Event])))();
|
| let CompleterOfDatabase = () => (CompleterOfDatabase = dart.constFn(async.Completer$(indexed_db.Database)))();
|
| let ListOfEventTarget = () => (ListOfEventTarget = dart.constFn(core.List$(html$.EventTarget)))();
|
| - let RectangleOfint = () => (RectangleOfint = dart.constFn(math.Rectangle$(core.int)))();
|
| let IterableOfNode = () => (IterableOfNode = dart.constFn(core.Iterable$(html$.Node)))();
|
| let ListOfNode = () => (ListOfNode = dart.constFn(core.List$(html$.Node)))();
|
| let ListOfElement = () => (ListOfElement = dart.constFn(core.List$(html$.Element)))();
|
| @@ -558,7 +555,6 @@ define([], function() {
|
| let EventStreamProviderOfMediaStreamEvent = () => (EventStreamProviderOfMediaStreamEvent = dart.constFn(html$.EventStreamProvider$(html$.MediaStreamEvent)))();
|
| let EventStreamProviderOfRtcDataChannelEvent = () => (EventStreamProviderOfRtcDataChannelEvent = dart.constFn(html$.EventStreamProvider$(html$.RtcDataChannelEvent)))();
|
| let EventStreamProviderOfRtcIceCandidateEvent = () => (EventStreamProviderOfRtcIceCandidateEvent = dart.constFn(html$.EventStreamProvider$(html$.RtcIceCandidateEvent)))();
|
| - let ListOfOptionElement = () => (ListOfOptionElement = dart.constFn(core.List$(html$.OptionElement)))();
|
| let UnmodifiableListViewOfOptionElement = () => (UnmodifiableListViewOfOptionElement = dart.constFn(collection.UnmodifiableListView$(html$.OptionElement)))();
|
| let JSArrayOfOptionElement = () => (JSArrayOfOptionElement = dart.constFn(_interceptors.JSArray$(html$.OptionElement)))();
|
| let ListOfSourceBuffer = () => (ListOfSourceBuffer = dart.constFn(core.List$(html$.SourceBuffer)))();
|
| @@ -761,6 +757,7 @@ define([], function() {
|
| let IterableAndListTovoid = () => (IterableAndListTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [core.Iterable, core.List])))();
|
| let _SplayTreeMapNodeTobool = () => (_SplayTreeMapNodeTobool = dart.constFn(dart.definiteFunctionType(core.bool, [collection._SplayTreeMapNode])))();
|
| let dynamicAndFnTodynamic = () => (dynamicAndFnTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dynamicAnddynamicTodynamic()])))();
|
| + let EventSinkTo_ConverterStreamEventSink = () => (EventSinkTo_ConverterStreamEventSink = dart.constFn(dart.definiteFunctionType(convert._ConverterStreamEventSink, [async.EventSink])))();
|
| let Uint8ListAndintAndintTovoid$ = () => (Uint8ListAndintAndintTovoid$ = dart.constFn(dart.definiteFunctionType(dart.void, [typed_data.Uint8List, core.int, core.int])))();
|
| let StringAndFnTodynamic = () => (StringAndFnTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [core.String, dynamicAnddynamicTodynamic()])))();
|
| let EventSinkOfStringTo_LineSplitterEventSink = () => (EventSinkOfStringTo_LineSplitterEventSink = dart.constFn(dart.definiteFunctionType(convert._LineSplitterEventSink, [EventSinkOfString()])))();
|
| @@ -10702,7 +10699,7 @@ define([], function() {
|
| let wrapper = new async._ControllerEventSinkWrapper(null);
|
| timeout = dart.fn(() => {
|
| wrapper[_sink] = controller;
|
| - zone.runUnaryGuarded(dart.dynamic, EventSinkOfT())(registeredOnTimeout, wrapper);
|
| + zone.runUnaryGuarded(dart.dynamic, async._ControllerEventSinkWrapper)(registeredOnTimeout, wrapper);
|
| wrapper[_sink] = null;
|
| }, VoidTovoid$());
|
| }
|
| @@ -14067,7 +14064,7 @@ define([], function() {
|
| this[_symbol] = symbol;
|
| this[_name$] = _js_mirrors.getName(symbol);
|
| this.type = _js_mirrors.reflectType(t);
|
| - this.metadata = ListOfInstanceMirror().unmodifiable(annotations[dartx.map](mirrors.InstanceMirror)(dart.fn(a => _js_mirrors.reflect(a), dynamicToInstanceMirror())));
|
| + this.metadata = ListOfInstanceMirror().unmodifiable(annotations[dartx.map](dart.dynamic)(dart.fn(a => _js_mirrors.reflect(a), dynamicToInstanceMirror())));
|
| this.isStatic = false;
|
| this.isFinal = false;
|
| }
|
| @@ -28939,7 +28936,7 @@ define([], function() {
|
| }
|
| get values() {
|
| if (dart.test(this[_isUpgraded])) return this[_upgradedMap][dartx.values];
|
| - return MappedIterableOfString$dynamic().new(this[_computeKeys$](), dart.fn(each => this._get(each), dynamicTodynamic$()));
|
| + return _internal.MappedIterable.new(this[_computeKeys$](), dart.fn(each => this._get(each), dynamicTodynamic$()));
|
| }
|
| _set(key, value) {
|
| if (dart.test(this[_isUpgraded])) {
|
| @@ -29503,11 +29500,9 @@ define([], function() {
|
| const _subsetMask = Symbol('_subsetMask');
|
| convert.Converter$ = dart.generic((S, T) => {
|
| let StreamOfS = () => (StreamOfS = dart.constFn(async.Stream$(S)))();
|
| - let _ConverterStreamEventSinkOfS$dynamic = () => (_ConverterStreamEventSinkOfS$dynamic = dart.constFn(convert._ConverterStreamEventSink$(S, dart.dynamic)))();
|
| let StreamTransformerOfS$T = () => (StreamTransformerOfS$T = dart.constFn(async.StreamTransformer$(S, T)))();
|
| let SinkOfT = () => (SinkOfT = dart.constFn(core.Sink$(T)))();
|
| let StreamOfT = () => (StreamOfT = dart.constFn(async.Stream$(T)))();
|
| - let EventSinkTo_ConverterStreamEventSinkOfS$dynamic = () => (EventSinkTo_ConverterStreamEventSinkOfS$dynamic = dart.constFn(dart.definiteFunctionType(_ConverterStreamEventSinkOfS$dynamic(), [async.EventSink])))();
|
| class Converter extends core.Object {
|
| new() {
|
| }
|
| @@ -29523,7 +29518,7 @@ define([], function() {
|
| }
|
| bind(stream) {
|
| StreamOfS()._check(stream);
|
| - return StreamOfT().eventTransformed(stream, dart.fn(sink => new (_ConverterStreamEventSinkOfS$dynamic())(this, sink), EventSinkTo_ConverterStreamEventSinkOfS$dynamic()));
|
| + return StreamOfT().eventTransformed(stream, dart.fn(sink => new convert._ConverterStreamEventSink(this, sink), EventSinkTo_ConverterStreamEventSink()));
|
| }
|
| }
|
| dart.addTypeTests(Converter);
|
| @@ -35267,7 +35262,7 @@ define([], function() {
|
| if (dart.test(pathToSplit[dartx.isNotEmpty]) && pathToSplit[dartx.codeUnitAt](0) == core.Uri._SLASH) {
|
| pathToSplit = pathToSplit[dartx.substring](1);
|
| }
|
| - result = pathToSplit == "" ? const$51 || (const$51 = dart.constList([], core.String)) : ListOfString().unmodifiable(pathToSplit[dartx.split]("/")[dartx.map](core.String)(core.Uri.decodeComponent));
|
| + result = pathToSplit == "" ? const$51 || (const$51 = dart.constList([], core.String)) : ListOfString().unmodifiable(pathToSplit[dartx.split]("/")[dartx.map](dart.dynamic)(core.Uri.decodeComponent));
|
| this[_pathSegments] = result;
|
| return result;
|
| }
|
| @@ -36784,7 +36779,7 @@ define([], function() {
|
| } else {
|
| dart.assert(this[_errorCode] != null);
|
| dart.assert(this[_errorDetail] != null);
|
| - return convert.JSON.encode(dart.map({code: this[_errorCode], message: developer.ServiceExtensionResponse._errorCodeMessage(this[_errorCode]), data: dart.map({details: this[_errorDetail]}, core.String, core.String)}, core.String, core.Object));
|
| + return convert.JSON.encode(dart.map({code: this[_errorCode], message: developer.ServiceExtensionResponse._errorCodeMessage(this[_errorCode]), data: dart.map({details: this[_errorDetail]}, core.String, core.String)}));
|
| }
|
| }
|
| };
|
| @@ -38558,7 +38553,7 @@ define([], function() {
|
| return core.Uri.file(this.path);
|
| }
|
| resolveSymbolicLinks() {
|
| - return io._IOService._dispatch(io._FILE_RESOLVE_SYMBOLIC_LINKS, JSArrayOfString().of([this.path])).then(core.String)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_RESOLVE_SYMBOLIC_LINKS, [this.path]).then(core.String)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "Cannot resolve symbolic links", this.path));
|
| }
|
| @@ -38584,7 +38579,7 @@ define([], function() {
|
| return io._FileSystemWatcher._watch(io.FileSystemEntity._trimTrailingPathSeparators(this.path), events, recursive);
|
| }
|
| static identical(path1, path2) {
|
| - return io._IOService._dispatch(io._FILE_IDENTICAL, JSArrayOfString().of([path1, path2])).then(core.bool)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_IDENTICAL, [path1, path2]).then(core.bool)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, dart.str`Error in FileSystemEntity.identical(${path1}, ${path2})`, ""));
|
| }
|
| @@ -38680,7 +38675,7 @@ define([], function() {
|
| return core.int._check(result);
|
| }
|
| static _getTypeAsync(path, followLinks) {
|
| - return io._IOService._dispatch(io._FILE_TYPE, JSArrayOfObject().of([path, followLinks])).then(core.int)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_TYPE, [path, followLinks]).then(core.int)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "Error getting type", path));
|
| }
|
| @@ -38826,7 +38821,7 @@ define([], function() {
|
| return core.Uri.directory(this.path);
|
| }
|
| exists() {
|
| - return io._IOService._dispatch(io._DIRECTORY_EXISTS, JSArrayOfString().of([this.path])).then(core.bool)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._DIRECTORY_EXISTS, [this.path]).then(core.bool)(dart.fn(response => {
|
| if (dart.test(this[_isErrorResponse](response))) {
|
| dart.throw(this[_exceptionOrErrorFromResponse](response, "Exists failed"));
|
| }
|
| @@ -38882,7 +38877,7 @@ define([], function() {
|
| }
|
| }, boolTodynamic()));
|
| } else {
|
| - return io._IOService._dispatch(io._DIRECTORY_CREATE, JSArrayOfString().of([this.path])).then(io._Directory)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._DIRECTORY_CREATE, [this.path]).then(io.Directory)(dart.fn(response => {
|
| if (dart.test(this[_isErrorResponse](response))) {
|
| dart.throw(this[_exceptionOrErrorFromResponse](response, "Creation failed"));
|
| }
|
| @@ -38918,7 +38913,7 @@ define([], function() {
|
| } else {
|
| fullPrefix = dart.str`${this.path}${io.Platform.pathSeparator}${prefix}`;
|
| }
|
| - return io._IOService._dispatch(io._DIRECTORY_CREATE_TEMP, JSArrayOfString().of([fullPrefix])).then(io.Directory)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._DIRECTORY_CREATE_TEMP, [fullPrefix]).then(io.Directory)(dart.fn(response => {
|
| if (dart.test(this[_isErrorResponse](response))) {
|
| dart.throw(this[_exceptionOrErrorFromResponse](response, "Creation of temporary directory failed"));
|
| }
|
| @@ -38945,7 +38940,7 @@ define([], function() {
|
| }
|
| [_delete](opts) {
|
| let recursive = opts && 'recursive' in opts ? opts.recursive : false;
|
| - return io._IOService._dispatch(io._DIRECTORY_DELETE, JSArrayOfObject().of([this.path, recursive])).then(io._Directory)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._DIRECTORY_DELETE, [this.path, recursive]).then(io.Directory)(dart.fn(response => {
|
| if (dart.test(this[_isErrorResponse](response))) {
|
| dart.throw(this[_exceptionOrErrorFromResponse](response, "Deletion failed"));
|
| }
|
| @@ -38960,7 +38955,7 @@ define([], function() {
|
| }
|
| }
|
| rename(newPath) {
|
| - return io._IOService._dispatch(io._DIRECTORY_RENAME, JSArrayOfString().of([this.path, newPath])).then(io.Directory)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._DIRECTORY_RENAME, [this.path, newPath]).then(io.Directory)(dart.fn(response => {
|
| if (dart.test(this[_isErrorResponse](response))) {
|
| dart.throw(this[_exceptionOrErrorFromResponse](response, "Rename failed"));
|
| }
|
| @@ -39090,7 +39085,7 @@ define([], function() {
|
| return this.controller.stream;
|
| }
|
| onListen() {
|
| - io._IOService._dispatch(io._DIRECTORY_LIST_START, JSArrayOfObject().of([this.path, this.recursive, this.followLinks])).then(dart.dynamic)(dart.fn(response => {
|
| + io._IOService._dispatch(io._DIRECTORY_LIST_START, [this.path, this.recursive, this.followLinks]).then(dart.dynamic)(dart.fn(response => {
|
| if (typeof response == 'number') {
|
| this[_ops] = io._AsyncDirectoryListerOps.new(response);
|
| this.next();
|
| @@ -39128,7 +39123,7 @@ define([], function() {
|
| return;
|
| }
|
| this.nextRunning = true;
|
| - io._IOService._dispatch(io._DIRECTORY_LIST_NEXT, JSArrayOfint().of([pointer])).then(dart.dynamic)(dart.fn(result => {
|
| + io._IOService._dispatch(io._DIRECTORY_LIST_NEXT, [pointer]).then(dart.dynamic)(dart.fn(result => {
|
| this.nextRunning = false;
|
| if (core.List.is(result)) {
|
| this.next();
|
| @@ -39185,7 +39180,7 @@ define([], function() {
|
| if (pointer == null) {
|
| this[_cleanup]();
|
| } else {
|
| - io._IOService._dispatch(io._DIRECTORY_LIST_STOP, JSArrayOfint().of([pointer])).whenComplete(dart.bind(this, _cleanup));
|
| + io._IOService._dispatch(io._DIRECTORY_LIST_STOP, [pointer]).whenComplete(dart.bind(this, _cleanup));
|
| }
|
| }
|
| error(message) {
|
| @@ -39593,7 +39588,7 @@ define([], function() {
|
| return completer.future;
|
| }
|
| close() {
|
| - return this[_openFuture].then(io.File)(dart.fn(openedFile => openedFile.close(), RandomAccessFileToFutureOfRandomAccessFile()));
|
| + return this[_openFuture].then(io.RandomAccessFile)(dart.fn(openedFile => openedFile.close(), RandomAccessFileToFutureOfRandomAccessFile()));
|
| }
|
| };
|
| dart.addSimpleTypeTests(io._FileStreamConsumer);
|
| @@ -39609,7 +39604,7 @@ define([], function() {
|
| }),
|
| methods: () => ({
|
| addStream: dart.definiteFunctionType(async.Future$(io.File), [StreamOfListOfint()]),
|
| - close: dart.definiteFunctionType(async.Future$(io.File), [])
|
| + close: dart.definiteFunctionType(async.Future$(io.RandomAccessFile), [])
|
| })
|
| });
|
| const _tryDecode = Symbol('_tryDecode');
|
| @@ -39623,7 +39618,7 @@ define([], function() {
|
| }
|
| }
|
| exists() {
|
| - return io._IOService._dispatch(io._FILE_EXISTS, JSArrayOfString().of([this.path])).then(core.bool)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_EXISTS, [this.path]).then(core.bool)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "Cannot check existence", this.path));
|
| }
|
| @@ -39650,7 +39645,7 @@ define([], function() {
|
| create(opts) {
|
| let recursive = opts && 'recursive' in opts ? opts.recursive : false;
|
| let result = dart.test(recursive) ? this.parent.create({recursive: true}) : async.Future.value(null);
|
| - return result.then(dart.dynamic)(dart.fn(_ => io._IOService._dispatch(io._FILE_CREATE, JSArrayOfString().of([this.path])), dynamicToFuture())).then(io._File)(dart.fn(response => {
|
| + return result.then(dart.dynamic)(dart.fn(_ => io._IOService._dispatch(io._FILE_CREATE, [this.path]), dynamicToFuture())).then(io.File)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "Cannot create file", this.path));
|
| }
|
| @@ -39677,9 +39672,9 @@ define([], function() {
|
| [_delete](opts) {
|
| let recursive = opts && 'recursive' in opts ? opts.recursive : false;
|
| if (dart.test(recursive)) {
|
| - return io.Directory.new(this.path).delete({recursive: true}).then(io._File)(dart.fn(_ => this, FileSystemEntityTo_File()));
|
| + return io.Directory.new(this.path).delete({recursive: true}).then(io.File)(dart.fn(_ => this, FileSystemEntityTo_File()));
|
| }
|
| - return io._IOService._dispatch(io._FILE_DELETE, JSArrayOfString().of([this.path])).then(io._File)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_DELETE, [this.path]).then(io.File)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "Cannot delete file", this.path));
|
| }
|
| @@ -39701,7 +39696,7 @@ define([], function() {
|
| io._File.throwIfError(result, "Cannot delete file", this.path);
|
| }
|
| rename(newPath) {
|
| - return io._IOService._dispatch(io._FILE_RENAME, JSArrayOfString().of([this.path, newPath])).then(io.File)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_RENAME, [this.path, newPath]).then(io.File)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, dart.str`Cannot rename file to '${newPath}'`, this.path));
|
| }
|
| @@ -39720,7 +39715,7 @@ define([], function() {
|
| return io.File.new(newPath);
|
| }
|
| copy(newPath) {
|
| - return io._IOService._dispatch(io._FILE_COPY, JSArrayOfString().of([this.path, newPath])).then(io.File)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_COPY, [this.path, newPath]).then(io.File)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, dart.str`Cannot copy file to '${newPath}'`, this.path));
|
| }
|
| @@ -39740,7 +39735,7 @@ define([], function() {
|
| if (!dart.equals(mode, io.FileMode.READ) && !dart.equals(mode, io.FileMode.WRITE) && !dart.equals(mode, io.FileMode.APPEND) && !dart.equals(mode, io.FileMode.WRITE_ONLY) && !dart.equals(mode, io.FileMode.WRITE_ONLY_APPEND)) {
|
| return FutureOfRandomAccessFile().error(new core.ArgumentError('Invalid file mode for this operation'));
|
| }
|
| - return io._IOService._dispatch(io._FILE_OPEN, JSArrayOfObject().of([this.path, mode[_mode]])).then(io._RandomAccessFile)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_OPEN, [this.path, mode[_mode]]).then(io.RandomAccessFile)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "Cannot open file", this.path));
|
| }
|
| @@ -39748,7 +39743,7 @@ define([], function() {
|
| }, dynamicTo_RandomAccessFile()));
|
| }
|
| length() {
|
| - return io._IOService._dispatch(io._FILE_LENGTH_FROM_PATH, JSArrayOfString().of([this.path])).then(core.int)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_LENGTH_FROM_PATH, [this.path]).then(core.int)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "Cannot retrieve length of file", this.path));
|
| }
|
| @@ -39764,7 +39759,7 @@ define([], function() {
|
| return core.int._check(result);
|
| }
|
| lastModified() {
|
| - return io._IOService._dispatch(io._FILE_LAST_MODIFIED, JSArrayOfString().of([this.path])).then(core.DateTime)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_LAST_MODIFIED, [this.path]).then(core.DateTime)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "Cannot retrieve modification time", this.path));
|
| }
|
| @@ -40027,7 +40022,7 @@ define([], function() {
|
| }
|
| }
|
| close() {
|
| - return this[_dispatch](io._FILE_CLOSE, [null], {markClosed: true}).then(io._RandomAccessFile)(dart.fn(result => {
|
| + return this[_dispatch](io._FILE_CLOSE, [null], {markClosed: true}).then(io.RandomAccessFile)(dart.fn(result => {
|
| if (!dart.equals(result, -1)) {
|
| this.closed = dart.test(this.closed) || dart.equals(result, 0);
|
| this[_maybePerformCleanup]();
|
| @@ -40068,7 +40063,7 @@ define([], function() {
|
| if (!(typeof bytes == 'number')) {
|
| dart.throw(new core.ArgumentError(bytes));
|
| }
|
| - return this[_dispatch](io._FILE_READ, JSArrayOfint().of([null, bytes])).then(ListOfint())(dart.fn(response => {
|
| + return this[_dispatch](io._FILE_READ, [null, bytes]).then(ListOfint())(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "read failed", this.path));
|
| }
|
| @@ -40099,7 +40094,7 @@ define([], function() {
|
| return FutureOfint().value(0);
|
| }
|
| let length = dart.notNull(end) - dart.notNull(start);
|
| - return this[_dispatch](io._FILE_READ_INTO, JSArrayOfint().of([null, length])).then(core.int)(dart.fn(response => {
|
| + return this[_dispatch](io._FILE_READ_INTO, [null, length]).then(core.int)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "readInto failed", this.path));
|
| }
|
| @@ -40132,7 +40127,7 @@ define([], function() {
|
| if (!(typeof value == 'number')) {
|
| dart.throw(new core.ArgumentError(value));
|
| }
|
| - return this[_dispatch](io._FILE_WRITE_BYTE, JSArrayOfint().of([null, value])).then(io._RandomAccessFile)(dart.fn(response => {
|
| + return this[_dispatch](io._FILE_WRITE_BYTE, [null, value]).then(io.RandomAccessFile)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "writeByte failed", this.path));
|
| }
|
| @@ -40174,7 +40169,7 @@ define([], function() {
|
| request[dartx._set](1, result.buffer);
|
| request[dartx._set](2, result.start);
|
| request[dartx._set](3, dart.notNull(end) - (dart.notNull(start) - dart.notNull(result.start)));
|
| - return this[_dispatch](io._FILE_WRITE_FROM, request).then(io._RandomAccessFile)(dart.fn(response => {
|
| + return this[_dispatch](io._FILE_WRITE_FROM, request).then(io.RandomAccessFile)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "writeFrom failed", this.path));
|
| }
|
| @@ -40233,7 +40228,7 @@ define([], function() {
|
| return core.int._check(result);
|
| }
|
| setPosition(position) {
|
| - return this[_dispatch](io._FILE_SET_POSITION, JSArrayOfint().of([null, position])).then(io._RandomAccessFile)(dart.fn(response => {
|
| + return this[_dispatch](io._FILE_SET_POSITION, [null, position]).then(io.RandomAccessFile)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "setPosition failed", this.path));
|
| }
|
| @@ -40248,7 +40243,7 @@ define([], function() {
|
| }
|
| }
|
| truncate(length) {
|
| - return this[_dispatch](io._FILE_TRUNCATE, JSArrayOfint().of([null, length])).then(io._RandomAccessFile)(dart.fn(response => {
|
| + return this[_dispatch](io._FILE_TRUNCATE, [null, length]).then(io.RandomAccessFile)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "truncate failed", this.path));
|
| }
|
| @@ -40279,7 +40274,7 @@ define([], function() {
|
| return core.int._check(result);
|
| }
|
| flush() {
|
| - return this[_dispatch](io._FILE_FLUSH, [null]).then(io._RandomAccessFile)(dart.fn(response => {
|
| + return this[_dispatch](io._FILE_FLUSH, [null]).then(io.RandomAccessFile)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, "flush failed", this.path));
|
| }
|
| @@ -40304,7 +40299,7 @@ define([], function() {
|
| dart.throw(new core.ArgumentError());
|
| }
|
| let lock = dart.equals(mode, io.FileLock.EXCLUSIVE) ? io._RandomAccessFile.LOCK_EXCLUSIVE : io._RandomAccessFile.LOCK_SHARED;
|
| - return this[_dispatch](io._FILE_LOCK, JSArrayOfint().of([null, lock, start, end])).then(io._RandomAccessFile)(dart.fn(response => {
|
| + return this[_dispatch](io._FILE_LOCK, [null, lock, start, end]).then(io.RandomAccessFile)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, 'lock failed', this.path));
|
| }
|
| @@ -40320,7 +40315,7 @@ define([], function() {
|
| if (start == end) {
|
| dart.throw(new core.ArgumentError());
|
| }
|
| - return this[_dispatch](io._FILE_LOCK, JSArrayOfint().of([null, io._RandomAccessFile.LOCK_UNLOCK, start, end])).then(io._RandomAccessFile)(dart.fn(response => {
|
| + return this[_dispatch](io._FILE_LOCK, [null, io._RandomAccessFile.LOCK_UNLOCK, start, end]).then(io.RandomAccessFile)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| dart.throw(io._exceptionFromResponse(response, 'unlock failed', this.path));
|
| }
|
| @@ -40522,7 +40517,7 @@ define([], function() {
|
| if (dart.test(io.Platform.isWindows)) {
|
| path = io.FileSystemEntity._trimTrailingPathSeparators(path);
|
| }
|
| - return io._IOService._dispatch(io._FILE_STAT, JSArrayOfString().of([path])).then(io.FileStat)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_STAT, [path]).then(io.FileStat)(dart.fn(response => {
|
| if (dart.test(io._isErrorResponse(response))) {
|
| return io.FileStat._notFound;
|
| }
|
| @@ -41206,8 +41201,8 @@ define([], function() {
|
| let const$66;
|
| io.HttpDate = class HttpDate extends core.Object {
|
| static format(date) {
|
| - let wkday = const$58 || (const$58 = dart.constList(["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], core.String));
|
| - let month = const$59 || (const$59 = dart.constList(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], core.String));
|
| + let wkday = const$58 || (const$58 = dart.constList(["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], dart.dynamic));
|
| + let month = const$59 || (const$59 = dart.constList(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], dart.dynamic));
|
| let d = date.toUtc();
|
| let sb = new core.StringBuffer();
|
| sb.write(wkday[dartx._get](dart.notNull(d.weekday) - 1));
|
| @@ -41229,12 +41224,12 @@ define([], function() {
|
| }
|
| static parse(date) {
|
| let SP = 32;
|
| - let wkdays = const$60 || (const$60 = dart.constList(["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], core.String));
|
| - let weekdays = const$61 || (const$61 = dart.constList(["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], core.String));
|
| - let months = const$62 || (const$62 = dart.constList(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], core.String));
|
| - let wkdaysLowerCase = const$63 || (const$63 = dart.constList(["mon", "tue", "wed", "thu", "fri", "sat", "sun"], core.String));
|
| - let weekdaysLowerCase = const$64 || (const$64 = dart.constList(["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], core.String));
|
| - let monthsLowerCase = const$65 || (const$65 = dart.constList(["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"], core.String));
|
| + let wkdays = const$60 || (const$60 = dart.constList(["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], dart.dynamic));
|
| + let weekdays = const$61 || (const$61 = dart.constList(["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"], dart.dynamic));
|
| + let months = const$62 || (const$62 = dart.constList(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], dart.dynamic));
|
| + let wkdaysLowerCase = const$63 || (const$63 = dart.constList(["mon", "tue", "wed", "thu", "fri", "sat", "sun"], dart.dynamic));
|
| + let weekdaysLowerCase = const$64 || (const$64 = dart.constList(["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"], dart.dynamic));
|
| + let monthsLowerCase = const$65 || (const$65 = dart.constList(["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"], dart.dynamic));
|
| let formatRfc1123 = 0;
|
| let formatRfc850 = 1;
|
| let formatAsctime = 2;
|
| @@ -41350,7 +41345,7 @@ define([], function() {
|
| return new core.DateTime.utc(year, dart.notNull(month) + 1, day, hours, minutes, seconds, 0);
|
| }
|
| static _parseCookieDate(date) {
|
| - let monthsLowerCase = const$66 || (const$66 = dart.constList(["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"], core.String));
|
| + let monthsLowerCase = const$66 || (const$66 = dart.constList(["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"], dart.dynamic));
|
| let position = 0;
|
| function error() {
|
| dart.throw(new io.HttpException(dart.str`Invalid cookie date ${date}`));
|
| @@ -44063,7 +44058,7 @@ define([], function() {
|
| dart.dsend(sub, 'pause', future);
|
| }
|
| }
|
| - return this.socket.addStream(StreamOfListOfint()._check(controller.stream)).then(io._HttpOutboundMessage)(dart.fn(_ => this.outbound, dynamicTo_HttpOutboundMessage()), {onError: dart.fn((error, stackTrace) => {
|
| + return this.socket.addStream(StreamOfListOfint()._check(controller.stream)).then(dart.dynamic)(dart.fn(_ => this.outbound, dynamicTo_HttpOutboundMessage()), {onError: dart.fn((error, stackTrace) => {
|
| if (dart.test(this[_gzip])) this[_gzipSink].close();
|
| this[_socketError] = true;
|
| this[_doneCompleter].completeError(error, core.StackTrace._check(stackTrace));
|
| @@ -44112,7 +44107,7 @@ define([], function() {
|
| this.socket.add(typed_data.Uint8List.view(this[_buffer$][dartx.buffer], 0, this[_length$2]));
|
| }
|
| this[_buffer$] = null;
|
| - return this.socket.flush().then(io._HttpOutboundMessage)(dart.fn(_ => {
|
| + return this.socket.flush().then(dart.dynamic)(dart.fn(_ => {
|
| this[_doneCompleter].complete(this.socket);
|
| return this.outbound;
|
| }, dynamicTo_HttpOutboundMessage()), {onError: dart.fn((error, stackTrace) => {
|
| @@ -44415,7 +44410,7 @@ define([], function() {
|
| return request;
|
| }
|
| detachSocket() {
|
| - return this[_streamFuture].then(io._DetachedSocket)(dart.fn(_ => new io._DetachedSocket(this[_socket], this[_httpParser].detachIncoming()), dynamicTo_DetachedSocket()));
|
| + return this[_streamFuture].then(io.Socket)(dart.fn(_ => new io._DetachedSocket(this[_socket], this[_httpParser].detachIncoming()), dynamicTo_DetachedSocket()));
|
| }
|
| destroy() {
|
| this.closed = true;
|
| @@ -45139,7 +45134,7 @@ define([], function() {
|
| this[_state$1] = io._HttpConnection._DETACHED;
|
| this[_httpServer][_connectionClosed](this);
|
| let detachedIncoming = this[_httpParser].detachIncoming();
|
| - return this[_streamFuture].then(io._DetachedSocket)(dart.fn(_ => {
|
| + return this[_streamFuture].then(io.Socket)(dart.fn(_ => {
|
| io._HttpConnection._connections[dartx.remove](this[_serviceId]);
|
| return new io._DetachedSocket(this[_socket], detachedIncoming);
|
| }, dynamicTo_DetachedSocket()));
|
| @@ -45263,10 +45258,10 @@ define([], function() {
|
| let const$72;
|
| io._HttpServer = class _HttpServer extends dart.mixin(async.Stream$(io.HttpRequest), io._ServiceObject) {
|
| static bind(address, port, backlog, v6Only, shared) {
|
| - return io.ServerSocket.bind(address, port, {backlog: backlog, v6Only: v6Only, shared: shared}).then(io._HttpServer)(dart.fn(socket => new io._HttpServer._(socket, true), ServerSocketTo_HttpServer()));
|
| + return io.ServerSocket.bind(address, port, {backlog: backlog, v6Only: v6Only, shared: shared}).then(io.HttpServer)(dart.fn(socket => new io._HttpServer._(socket, true), ServerSocketTo_HttpServer()));
|
| }
|
| static bindSecure(address, port, context, backlog, v6Only, requestClientCertificate, shared) {
|
| - return io.SecureServerSocket.bind(address, port, context, {backlog: backlog, v6Only: v6Only, requestClientCertificate: requestClientCertificate, shared: shared}).then(io._HttpServer)(dart.fn(socket => new io._HttpServer._(socket, true), SecureServerSocketTo_HttpServer()));
|
| + return io.SecureServerSocket.bind(address, port, context, {backlog: backlog, v6Only: v6Only, requestClientCertificate: requestClientCertificate, shared: shared}).then(io.HttpServer)(dart.fn(socket => new io._HttpServer._(socket, true), SecureServerSocketTo_HttpServer()));
|
| }
|
| _(serverSocket, closeServer) {
|
| this.defaultResponseHeaders = io._HttpServer._initDefaultResponseHeaders();
|
| @@ -47514,7 +47509,7 @@ define([], function() {
|
| io._FileResourceInfo.openFiles[dartx.remove](info.id);
|
| }
|
| static getOpenFilesList() {
|
| - return ListOfMapOfString$String().from(io._FileResourceInfo.openFiles[dartx.values][dartx.map](MapOfString$String())(dart.fn(e => e.referenceValueMap, _FileResourceInfoToMapOfString$String())));
|
| + return ListOfMapOfString$String().from(io._FileResourceInfo.openFiles[dartx.values][dartx.map](dart.dynamic)(dart.fn(e => e.referenceValueMap, _FileResourceInfoToMapOfString$String())));
|
| }
|
| static getOpenFiles(func, params) {
|
| dart.assert(dart.equals(func, 'ext.dart.io.getOpenFiles'));
|
| @@ -47589,7 +47584,7 @@ define([], function() {
|
| io._ProcessResourceInfo.startedProcesses[dartx.remove](info.id);
|
| }
|
| static getStartedProcessesList() {
|
| - return ListOfMapOfString$String().from(io._ProcessResourceInfo.startedProcesses[dartx.values][dartx.map](MapOfString$String())(dart.fn(e => e.referenceValueMap, _ProcessResourceInfoToMapOfString$String())));
|
| + return ListOfMapOfString$String().from(io._ProcessResourceInfo.startedProcesses[dartx.values][dartx.map](dart.dynamic)(dart.fn(e => e.referenceValueMap, _ProcessResourceInfoToMapOfString$String())));
|
| }
|
| static getStartedProcesses(func, params) {
|
| dart.assert(func == 'ext.dart.io.getProcesses');
|
| @@ -47656,7 +47651,7 @@ define([], function() {
|
| return dart.str`${dart.dload(dart.dload(this.socket, 'address'), 'host')}:${dart.dload(this.socket, 'port')}${remote}`;
|
| }
|
| static getOpenSocketsList() {
|
| - return ListOfMapOfString$String().from(io._SocketResourceInfo.openSockets[dartx.values][dartx.map](MapOfString$String())(dart.fn(e => e.referenceValueMap, _SocketResourceInfoToMapOfString$String())));
|
| + return ListOfMapOfString$String().from(io._SocketResourceInfo.openSockets[dartx.values][dartx.map](dart.dynamic)(dart.fn(e => e.referenceValueMap, _SocketResourceInfoToMapOfString$String())));
|
| }
|
| getSocketInfoMap() {
|
| let result = this.fullValueMap;
|
| @@ -47839,7 +47834,7 @@ define([], function() {
|
| target = this[_makeWindowsLinkTarget](target);
|
| }
|
| let result = dart.test(recursive) ? this.parent.create({recursive: true}) : async.Future.value(null);
|
| - return result.then(dart.dynamic)(dart.fn(_ => io._IOService._dispatch(io._FILE_CREATE_LINK, JSArrayOfString().of([this.path, target])), dynamicToFuture())).then(io._Link)(dart.fn(response => {
|
| + return result.then(dart.dynamic)(dart.fn(_ => io._IOService._dispatch(io._FILE_CREATE_LINK, [this.path, target]), dynamicToFuture())).then(io.Link)(dart.fn(response => {
|
| if (dart.test(this[_isErrorResponse](response))) {
|
| dart.throw(this[_exceptionFromResponse](response, dart.str`Cannot create link to target '${target}'`, this.path));
|
| }
|
| @@ -47878,9 +47873,9 @@ define([], function() {
|
| [_delete](opts) {
|
| let recursive = opts && 'recursive' in opts ? opts.recursive : false;
|
| if (dart.test(recursive)) {
|
| - return io.Directory.new(this.path).delete({recursive: true}).then(io._Link)(dart.fn(_ => this, FileSystemEntityTo_Link()));
|
| + return io.Directory.new(this.path).delete({recursive: true}).then(io.Link)(dart.fn(_ => this, FileSystemEntityTo_Link()));
|
| }
|
| - return io._IOService._dispatch(io._FILE_DELETE_LINK, JSArrayOfString().of([this.path])).then(io._Link)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_DELETE_LINK, [this.path]).then(io.Link)(dart.fn(response => {
|
| if (dart.test(this[_isErrorResponse](response))) {
|
| dart.throw(this[_exceptionFromResponse](response, "Cannot delete link", this.path));
|
| }
|
| @@ -47896,7 +47891,7 @@ define([], function() {
|
| io._Link.throwIfError(result, "Cannot delete link", this.path);
|
| }
|
| rename(newPath) {
|
| - return io._IOService._dispatch(io._FILE_RENAME_LINK, JSArrayOfString().of([this.path, newPath])).then(io.Link)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_RENAME_LINK, [this.path, newPath]).then(io.Link)(dart.fn(response => {
|
| if (dart.test(this[_isErrorResponse](response))) {
|
| dart.throw(this[_exceptionFromResponse](response, dart.str`Cannot rename link to '${newPath}'`, this.path));
|
| }
|
| @@ -47909,7 +47904,7 @@ define([], function() {
|
| return io.Link.new(newPath);
|
| }
|
| target() {
|
| - return io._IOService._dispatch(io._FILE_LINK_TARGET, JSArrayOfString().of([this.path])).then(core.String)(dart.fn(response => {
|
| + return io._IOService._dispatch(io._FILE_LINK_TARGET, [this.path]).then(core.String)(dart.fn(response => {
|
| if (dart.test(this[_isErrorResponse](response))) {
|
| dart.throw(this[_exceptionFromResponse](response, "Cannot get target of link", this.path));
|
| }
|
| @@ -51515,7 +51510,7 @@ define([], function() {
|
| }
|
| let deflate = io._WebSocketTransformerImpl._negotiateCompression(request, response, compression);
|
| response.headers.contentLength = 0;
|
| - return response.detachSocket().then(io._WebSocketImpl)(dart.fn(socket => new io._WebSocketImpl._fromSocket(socket, protocol, compression, true, deflate), SocketTo_WebSocketImpl()));
|
| + return response.detachSocket().then(dart.dynamic)(dart.fn(socket => new io._WebSocketImpl._fromSocket(socket, protocol, compression, true, deflate), SocketTo_WebSocketImpl()));
|
| }
|
| dart.fn(upgrade, StringToFuture());
|
| let protocols = request.headers._get('Sec-WebSocket-Protocol');
|
| @@ -51625,7 +51620,7 @@ define([], function() {
|
| this[_ensureDecoder]();
|
| let data = [];
|
| data[dartx.addAll](msg);
|
| - data[dartx.addAll](const$80 || (const$80 = dart.constList([0, 0, 255, 255], core.int)));
|
| + data[dartx.addAll](const$80 || (const$80 = dart.constList([0, 0, 255, 255], dart.dynamic)));
|
| this.decoder.process(ListOfint()._check(data), 0, data[dartx.length]);
|
| let result = [];
|
| let out = null;
|
| @@ -51825,7 +51820,7 @@ define([], function() {
|
| }
|
| dart.assert(index == headerSize);
|
| if (data == null) {
|
| - return JSArrayOfUint8List().of([header]);
|
| + return JSArrayOfListOfint().of([header]);
|
| } else {
|
| return JSArrayOfListOfint().of([header, data]);
|
| }
|
| @@ -51946,7 +51941,7 @@ define([], function() {
|
| this[_ensureController]();
|
| const closeSocket = (function() {
|
| return this.socket.close().catchError(dart.fn(_ => {
|
| - }, dynamicTodynamic$())).then(io._WebSocketImpl)(dart.fn(_ => this.webSocket, dynamicTo_WebSocketImpl()));
|
| + }, dynamicTodynamic$())).then(dart.dynamic)(dart.fn(_ => this.webSocket, dynamicTo_WebSocketImpl()));
|
| }).bind(this);
|
| dart.fn(closeSocket, VoidToFuture());
|
| this[_controller$0].close();
|
| @@ -52765,10 +52760,8 @@ define([], function() {
|
| const _checkIndex = Symbol('_checkIndex');
|
| const _checkInsertIndex = Symbol('_checkInsertIndex');
|
| js.JsArray$ = dart.generic(E => {
|
| - let JSArrayOfE = () => (JSArrayOfE = dart.constFn(_interceptors.JSArray$(E)))();
|
| let IterableOfE = () => (IterableOfE = dart.constFn(core.Iterable$(E)))();
|
| let EAndEToint = () => (EAndEToint = dart.constFn(dart.functionType(core.int, [E, E])))();
|
| - let JSArrayOfEAndEToint = () => (JSArrayOfEAndEToint = dart.constFn(_interceptors.JSArray$(EAndEToint())))();
|
| class JsArray extends dart.mixin(js.JsObject, collection.ListMixin$(E)) {
|
| new() {
|
| super._fromJs([]);
|
| @@ -52827,7 +52820,7 @@ define([], function() {
|
| }
|
| add(value) {
|
| E._check(value);
|
| - this.callMethod('push', JSArrayOfE().of([value]));
|
| + this.callMethod('push', [value]);
|
| }
|
| addAll(iterable) {
|
| IterableOfE()._check(iterable);
|
| @@ -52837,11 +52830,11 @@ define([], function() {
|
| insert(index, element) {
|
| E._check(element);
|
| this[_checkInsertIndex](index);
|
| - this.callMethod('splice', JSArrayOfObject().of([index, 0, element]));
|
| + this.callMethod('splice', [index, 0, element]);
|
| }
|
| removeAt(index) {
|
| this[_checkIndex](index);
|
| - return E.as(dart.dindex(this.callMethod('splice', JSArrayOfint().of([index, 1])), 0));
|
| + return E.as(dart.dindex(this.callMethod('splice', [index, 1]), 0));
|
| }
|
| removeLast() {
|
| if (this.length == 0) dart.throw(new core.RangeError(-1));
|
| @@ -52849,7 +52842,7 @@ define([], function() {
|
| }
|
| removeRange(start, end) {
|
| js.JsArray._checkRange(start, end, this.length);
|
| - this.callMethod('splice', JSArrayOfint().of([start, dart.notNull(end) - dart.notNull(start)]));
|
| + this.callMethod('splice', [start, dart.notNull(end) - dart.notNull(start)]);
|
| }
|
| setRange(start, end, iterable, skipCount) {
|
| IterableOfE()._check(iterable);
|
| @@ -52864,7 +52857,7 @@ define([], function() {
|
| }
|
| sort(compare) {
|
| if (compare === void 0) compare = null;
|
| - this.callMethod('sort', compare == null ? [] : JSArrayOfEAndEToint().of([compare]));
|
| + this.callMethod('sort', compare == null ? [] : [compare]);
|
| }
|
| }
|
| dart.addTypeTests(JsArray);
|
| @@ -56393,10 +56386,10 @@ define([], function() {
|
| return html$.window[_getComputedStyle](this, pseudoElement);
|
| }
|
| get [dartx.client]() {
|
| - return new (RectangleOfint())(this[dartx.clientLeft], this[dartx.clientTop], this[dartx.clientWidth], this[dartx.clientHeight]);
|
| + return new (RectangleOfnum())(this[dartx.clientLeft], this[dartx.clientTop], this[dartx.clientWidth], this[dartx.clientHeight]);
|
| }
|
| get [dartx.offset]() {
|
| - return new (RectangleOfint())(this[dartx.offsetLeft], this[dartx.offsetTop], this[dartx.offsetWidth], this[dartx.offsetHeight]);
|
| + return new (RectangleOfnum())(this[dartx.offsetLeft], this[dartx.offsetTop], this[dartx.offsetWidth], this[dartx.offsetHeight]);
|
| }
|
| [dartx.appendText](text) {
|
| this[dartx.append](html$.Text.new(text));
|
| @@ -69885,14 +69878,14 @@ define([], function() {
|
| html$.DirectoryEntry = class DirectoryEntry extends html$.Entry {
|
| [dartx.createDirectory](path, opts) {
|
| let exclusive = opts && 'exclusive' in opts ? opts.exclusive : false;
|
| - return this[_getDirectory](path, {options: dart.map({create: true, exclusive: exclusive}, core.String, core.bool)});
|
| + return this[_getDirectory](path, {options: dart.map({create: true, exclusive: exclusive})});
|
| }
|
| [dartx.getDirectory](path) {
|
| return this[_getDirectory](path);
|
| }
|
| [dartx.createFile](path, opts) {
|
| let exclusive = opts && 'exclusive' in opts ? opts.exclusive : false;
|
| - return this[_getFile](path, {options: dart.map({create: true, exclusive: exclusive}, core.String, core.bool)});
|
| + return this[_getFile](path, {options: dart.map({create: true, exclusive: exclusive})});
|
| }
|
| [dartx.getFile](path) {
|
| return this[_getFile](path);
|
| @@ -73133,7 +73126,7 @@ define([], function() {
|
| dart.setSignature(html$.Events, {
|
| constructors: () => ({new: dart.definiteFunctionType(html$.Events, [html$.EventTarget])}),
|
| fields: () => ({[_ptr]: html$.EventTarget}),
|
| - methods: () => ({_get: dart.definiteFunctionType(async.Stream, [core.String])})
|
| + methods: () => ({_get: dart.definiteFunctionType(async.Stream$(html$.Event), [core.String])})
|
| });
|
| html$.ElementEvents = class ElementEvents extends html$.Events {
|
| new(ptr) {
|
| @@ -81205,7 +81198,7 @@ define([], function() {
|
| }
|
| static new(callback) {
|
| 0;
|
| - return new (window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver)(_js_helper.convertDartClosureToJS(html$._wrapZoneBinaryCallback)(html$._wrapBinaryZone(dart.dynamic, dart.dynamic, dart.dynamic)(callback), 2));
|
| + return new (window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver)(_js_helper.convertDartClosureToJS(dynamicAnddynamicTodynamic())(html$._wrapBinaryZone(dart.dynamic, dart.dynamic, dart.dynamic)(callback), 2));
|
| }
|
| };
|
| dart.setSignature(html$.MutationObserver, {
|
| @@ -85249,7 +85242,7 @@ define([], function() {
|
| }
|
| static get supported() {
|
| try {
|
| - html$.RtcPeerConnection.new(dart.map({iceServers: JSArrayOfMapOfString$String().of([dart.map({url: "stun:localhost"}, core.String, core.String)])}, core.String, ListOfMapOfString$String()));
|
| + html$.RtcPeerConnection.new(dart.map({iceServers: JSArrayOfMapOfString$String().of([dart.map({url: "stun:localhost"}, core.String, core.String)])}));
|
| return true;
|
| } catch (_) {
|
| return false;
|
| @@ -85671,7 +85664,7 @@ define([], function() {
|
| ]);
|
| html$.Screen = class Screen extends _interceptors.Interceptor {
|
| get [dartx.available]() {
|
| - return new (RectangleOfint())(this[_availLeft], this[_availTop], this[_availWidth], this[_availHeight]);
|
| + return new (RectangleOfnum())(this[_availLeft], this[_availTop], this[_availWidth], this[_availHeight]);
|
| }
|
| static _() {
|
| dart.throw(new core.UnsupportedError("Not supported"));
|
| @@ -86236,8 +86229,8 @@ define([], function() {
|
| return this.setCustomValidity.apply(this, args);
|
| }
|
| get [dartx.options]() {
|
| - let options = ListOfOptionElement().from(this[dartx.querySelectorAll](html$.Element)('option'));
|
| - return new (UnmodifiableListViewOfOptionElement())(options);
|
| + let options = this[dartx.querySelectorAll](html$.OptionElement)('option');
|
| + return new (UnmodifiableListViewOfOptionElement())(options.toList());
|
| }
|
| get [dartx.selectedOptions]() {
|
| if (dart.test(this[dartx.multiple])) {
|
|
|