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

Unified Diff: lib/src/runner/browser/static/host.dart.js

Issue 1053443002: Rename the package to "test". (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/runner/browser/static/host.dart ('k') | lib/src/runner/browser/static/host.dart.js.map » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/browser/static/host.dart.js
diff --git a/lib/src/runner/browser/static/host.dart.js b/lib/src/runner/browser/static/host.dart.js
index 7d0cea13d38425c02096290beb08549ee75086d1..3a15fee6b3b285ec8c31d8cb9eb50189b811daee 100644
--- a/lib/src/runner/browser/static/host.dart.js
+++ b/lib/src/runner/browser/static/host.dart.js
@@ -1,4 +1,4 @@
-// Generated by dart2js, the Dart to JavaScript compiler version: 1.9.0-edge.44028.
+// Generated by dart2js, the Dart to JavaScript compiler version: 1.10.0-edge.44826.
// The code supports the following hooks:
// dartPrint(message):
// if this function is defined it is called instead of the Dart [print]
@@ -8,7 +8,21 @@
// if this function is defined, the Dart [main] method will not be invoked
// directly. Instead, a closure that will invoke [main], and its arguments
// [args] is passed to [dartMainRunner].
+//
+// dartDeferredLibraryLoader(uri, successCallback, errorCallback):
+// if this function is defined, it will be called when a deferered library
+// is loaded. It should load and eval the javascript of `uri`, and call
+// successCallback. If it fails to do so, it should call errorCallback with
+// an error.
(function($) {
+var supportsDirectProtoAccess = function() {
+ var cls = function() {
+ };
+ cls.prototype = {p: {}};
+ var object = new cls();
+ return object.__proto__ && object.__proto__.p === cls.prototype.p;
+}();
+;
function map(x) {
x = Object.create(null);
x.x = 0;
@@ -47,7 +61,7 @@ $ = Isolate.$isolateProperties;
$.functionThatReturnsNull = function() {
};
;
-function parseReflectionData(reflectionData) {
+function setupProgram(programData) {
"use strict";
function generateAccessor(fieldDescriptor, accessors, cls) {
var fieldInformation = fieldDescriptor.split("-");
@@ -104,14 +118,15 @@ function parseReflectionData(reflectionData) {
str += ", ";
var field = generateAccessor(fields[i], accessors, name);
fieldNames += "'" + field + "',";
- var parameter = "parameter_" + field;
+ var parameter = "p_" + field;
str += parameter;
body += "this." + field + " = " + parameter + ";\n";
}
+ if (supportsDirectProtoAccess)
+ body += "this." + "$deferredAction" + "();";
str += ") {\n" + body + "}\n";
str += name + ".builtin$cls=\"" + name + "\";\n";
- str += "$desc=$collectedClasses." + name + ";\n";
- str += "if($desc instanceof Array) $desc = \$desc[1];\n";
+ str += "$desc=$collectedClasses." + name + "[1];\n";
str += name + ".prototype = $desc;\n";
if (typeof defineClass.name != "string")
str += name + ".name=\"" + name + "\";\n";
@@ -142,18 +157,19 @@ function parseReflectionData(reflectionData) {
init.allClasses[name].apply(o, fields);
return o;
};
- var inheritFrom = function() {
+ var inheritFrom = supportsDirectProtoAccess ? function(constructor, superConstructor) {
+ var prototype = constructor.prototype;
+ prototype.__proto__ = superConstructor.prototype;
+ prototype.constructor = constructor;
+ prototype["$is" + constructor.name] = constructor;
+ return convertToFastObject(prototype);
+ } : function() {
function tmp() {
}
return function(constructor, superConstructor) {
- if (superConstructor == null) {
- var prototype = constructor.prototype;
- prototype.constructor = constructor;
- prototype.$isObject = constructor;
- return prototype;
- }
tmp.prototype = superConstructor.prototype;
var object = new tmp();
+ convertToSlowObject(object);
var properties = constructor.prototype;
var members = Object.keys(properties);
for (var i = 0; i < members.length; i++) {
@@ -175,11 +191,8 @@ function parseReflectionData(reflectionData) {
var constructor = constructors[i];
var cls = constructor.name;
var desc = processedClasses.collected[cls];
- var globalObject = $;
- if (desc instanceof Array) {
- globalObject = desc[0] || $;
- desc = desc[1];
- }
+ var globalObject = desc[0];
+ desc = desc[1];
allClasses[cls] = constructor;
globalObject[cls] = constructor;
}
@@ -206,7 +219,11 @@ function parseReflectionData(reflectionData) {
}
}
if (!superclass || typeof superclass != "string") {
- inheritFrom(allClasses[cls], null);
+ var constructor = allClasses[cls];
+ var prototype = constructor.prototype;
+ prototype.constructor = constructor;
+ prototype.$isObject = constructor;
+ prototype.$deferredAction = markerFun;
return;
}
finishClass(superclass);
@@ -238,41 +255,72 @@ function parseReflectionData(reflectionData) {
init.leafTags[tags[i]] = false;
}
}
+ if (constructor.prototype.$deferredAction)
+ finishAddStubsHelper(constructor.prototype);
}
+ if (prototype.$isInterceptor && constructor.prototype.$deferredAction)
+ finishAddStubsHelper(constructor.prototype);
}
var properties = Object.keys(processedClasses.pending);
for (var i = 0; i < properties.length; i++)
finishClass(properties[i]);
}
+ function finishAddStubsHelper(prototype) {
+ var prototype = prototype || this;
+ var object;
+ while (prototype.$deferredAction != markerFun) {
+ if (prototype.hasOwnProperty("$deferredAction")) {
+ delete prototype.$deferredAction;
+ var properties = Object.keys(prototype);
+ for (var index = 0; index < properties.length; index++) {
+ var property = properties[index];
+ var firstChar = property.charCodeAt(0);
+ var elem;
+ if (property !== "^" && property !== "$reflectable" && firstChar !== 43 && firstChar !== 42 && (elem = prototype[property]) != null && elem.constructor === Array && property !== "<>")
+ addStubs(prototype, elem, property, false, []);
+ }
+ convertToFastObject(prototype);
+ }
+ prototype = prototype.__proto__;
+ }
+ }
function processClassData(cls, descriptor, processedClasses) {
- var newDesc = {};
+ descriptor = convertToSlowObject(descriptor);
var previousProperty;
var properties = Object.keys(descriptor);
+ var hasDeferredWork = false;
+ var shouldDeferWork = supportsDirectProtoAccess && cls != "Object";
for (var i = 0; i < properties.length; i++) {
var property = properties[i];
- var firstChar = property.substring(0, 1);
- if (property === "static")
- processStatics(init.statics[cls] = descriptor[property], processedClasses);
- else if (firstChar === "+") {
+ var firstChar = property.charCodeAt(0);
+ if (property === "static") {
+ processStatics(init.statics[cls] = descriptor.static, processedClasses);
+ delete descriptor.static;
+ } else if (firstChar === 43) {
mangledNames[previousProperty] = property.substring(1);
var flag = descriptor[property];
if (flag > 0)
descriptor[previousProperty].$reflectable = flag;
- } else if (firstChar === "*") {
- newDesc[previousProperty].$defaultValues = descriptor[property];
- var optionalMethods = newDesc.$methodsWithOptionalArguments;
+ } else if (firstChar === 42) {
+ descriptor[previousProperty].$defaultValues = descriptor[property];
+ var optionalMethods = descriptor.$methodsWithOptionalArguments;
if (!optionalMethods)
- newDesc.$methodsWithOptionalArguments = optionalMethods = {};
+ descriptor.$methodsWithOptionalArguments = optionalMethods = {};
optionalMethods[property] = previousProperty;
} else {
var elem = descriptor[property];
if (property !== "^" && elem != null && elem.constructor === Array && property !== "<>")
- addStubs(newDesc, elem, property, false, descriptor, []);
+ if (shouldDeferWork)
+ hasDeferredWork = true;
+ else
+ addStubs(descriptor, elem, property, false, []);
else
- newDesc[previousProperty = property] = elem;
+ previousProperty = property;
}
}
- var classData = newDesc["^"], split, supr, fields = classData;
+ if (hasDeferredWork)
+ descriptor.$deferredAction = finishAddStubsHelper;
+ var classData = descriptor["^"], split, supr, fields = classData;
var s = fields.split(";");
fields = s[1] == "" ? [] : s[1].split(",");
supr = s[0];
@@ -281,9 +329,9 @@ function parseReflectionData(reflectionData) {
supr = split[0];
var functionSignature = split[1];
if (functionSignature)
- newDesc.$signature = function(s) {
+ descriptor.$signature = function(s) {
return function() {
- return init.metadata[s];
+ return init.types[s];
};
}(functionSignature);
}
@@ -291,7 +339,7 @@ function parseReflectionData(reflectionData) {
processedClasses.pending[cls] = supr;
processedClasses.combinedConstructorFunction += defineClass(cls, fields);
processedClasses.constructorsList.push(cls);
- processedClasses.collected[cls] = [globalObject, newDesc];
+ processedClasses.collected[cls] = [globalObject, descriptor];
classes.push(cls);
}
function processStatics(descriptor, processedClasses) {
@@ -301,16 +349,16 @@ function parseReflectionData(reflectionData) {
if (property === "^")
continue;
var element = descriptor[property];
- var firstChar = property.substring(0, 1);
+ var firstChar = property.charCodeAt(0);
var previousProperty;
- if (firstChar === "+") {
+ if (firstChar === 43) {
mangledGlobalNames[previousProperty] = property.substring(1);
var flag = descriptor[property];
if (flag > 0)
descriptor[previousProperty].$reflectable = flag;
if (element && element.length)
init.typeInformation[previousProperty] = element;
- } else if (firstChar === "*") {
+ } else if (firstChar === 42) {
globalObject[previousProperty].$defaultValues = element;
var optionalMethods = descriptor.$methodsWithOptionalArguments;
if (!optionalMethods)
@@ -321,14 +369,14 @@ function parseReflectionData(reflectionData) {
functions.push(property);
init.globalFunctions[property] = element;
} else if (element.constructor === Array)
- addStubs(globalObject, element, property, true, descriptor, functions);
+ addStubs(globalObject, element, property, true, functions);
else {
previousProperty = property;
processClassData(property, element, processedClasses);
}
}
}
- function addStubs(descriptor, array, name, isStatic, originalDescriptor, functions) {
+ function addStubs(prototype, array, name, isStatic, functions) {
var index = 0, alias = array[index], f;
if (typeof alias == "string")
f = array[++index];
@@ -336,7 +384,7 @@ function parseReflectionData(reflectionData) {
f = alias;
alias = name;
}
- var funcs = [originalDescriptor[name] = descriptor[name] = descriptor[alias] = f];
+ var funcs = [prototype[name] = prototype[alias] = f];
f.$stubName = name;
functions.push(name);
for (; index < array.length; index += 2) {
@@ -346,13 +394,14 @@ function parseReflectionData(reflectionData) {
f.$stubName = array[index + 2];
funcs.push(f);
if (f.$stubName) {
- originalDescriptor[f.$stubName] = descriptor[f.$stubName] = f;
+ prototype[f.$stubName] = f;
functions.push(f.$stubName);
}
}
+ index++;
for (var i = 0; i < funcs.length; index++, i++)
- funcs[i].$callName = array[index + 1];
- var getterStubName = array[++index];
+ funcs[i].$callName = array[index];
+ var getterStubName = array[index];
array = array.slice(++index);
var requiredParameterInfo = array[0];
var requiredParameterCount = requiredParameterInfo >> 1;
@@ -367,14 +416,14 @@ function parseReflectionData(reflectionData) {
var unmangledNameIndex = 2 * optionalParameterCount + requiredParameterCount + 3;
if (getterStubName) {
f = tearOff(funcs, array, isStatic, name, isIntercepted);
- descriptor[name].$getter = f;
+ prototype[name].$getter = f;
f.$getterStub = true;
- if (isStatic)
+ if (isStatic) {
init.globalFunctions[name] = f;
- originalDescriptor[getterStubName] = descriptor[getterStubName] = f;
- funcs.push(f);
- if (getterStubName)
functions.push(getterStubName);
+ }
+ prototype[getterStubName] = f;
+ funcs.push(f);
f.$stubName = getterStubName;
f.$callName = null;
}
@@ -407,14 +456,14 @@ function parseReflectionData(reflectionData) {
var mangledNames = init.mangledNames;
var mangledGlobalNames = init.mangledGlobalNames;
var hasOwnProperty = Object.prototype.hasOwnProperty;
- var length = reflectionData.length;
- var processedClasses = Object.create(null);
- processedClasses.collected = Object.create(null);
- processedClasses.pending = Object.create(null);
+ var length = programData.length;
+ var processedClasses = map();
+ processedClasses.collected = map();
+ processedClasses.pending = map();
processedClasses.constructorsList = [];
processedClasses.combinedConstructorFunction = "function $reflectable(fn){fn.$reflectable=1;return fn};\n" + "var $desc;\n";
for (var i = 0; i < length; i++) {
- var data = reflectionData[i];
+ var data = programData[i];
var name = data[0];
var uri = data[1];
var metadata = data[2];
@@ -582,8 +631,8 @@ var dart = [
},
addAll$1: function(receiver, collection) {
var t1;
- for (t1 = new H.ListIterator(collection, 2, 0, null); t1.moveNext$0();)
- this.add$1(receiver, t1._current);
+ for (t1 = new J.ArrayIterator(collection, 2, 0, null); t1.moveNext$0();)
+ this.add$1(receiver, t1.__interceptors$_current);
},
forEach$1: function(receiver, f) {
var end, i;
@@ -727,7 +776,7 @@ var dart = [
return this.toList$1$growable($receiver, true);
},
get$iterator: function(receiver) {
- return new H.ListIterator(receiver, receiver.length, 0, null);
+ return new J.ArrayIterator(receiver, receiver.length, 0, null);
},
get$hashCode: function(receiver) {
return H.Primitives_objectHashCode(receiver);
@@ -770,6 +819,27 @@ var dart = [
return t1;
}}
},
+ ArrayIterator: {
+ "^": "Object;_iterable,__interceptors$_length,_index,__interceptors$_current",
+ get$current: function() {
+ return this.__interceptors$_current;
+ },
+ moveNext$0: function() {
+ var t1, $length, t2;
+ t1 = this._iterable;
+ $length = t1.length;
+ if (this.__interceptors$_length !== $length)
+ throw H.wrapException(P.ConcurrentModificationError$(t1));
+ t2 = this._index;
+ if (t2 >= $length) {
+ this.__interceptors$_current = null;
+ return false;
+ }
+ this.__interceptors$_current = t1[t2];
+ this._index = t2 + 1;
+ return true;
+ }
+ },
JSNumber: {
"^": "Interceptor;",
get$isNaN: function(receiver) {
@@ -803,7 +873,7 @@ var dart = [
var result, match, t1, exponent;
H.checkInt(radix);
if (radix < 2 || radix > 36)
- throw H.wrapException(P.RangeError$(radix));
+ throw H.wrapException(P.RangeError$range(radix, 2, 36, "radix", null));
result = receiver.toString(radix);
if (C.JSString_methods.codeUnitAt$1(result, result.length - 1) !== 41)
return result;
@@ -971,7 +1041,7 @@ var dart = [
startsWith$2: function(receiver, pattern, index) {
var endIndex;
H.checkInt(index);
- if (index > receiver.length)
+ if (index < 0 || index > receiver.length)
throw H.wrapException(P.RangeError$range(index, 0, receiver.length, null, null));
if (typeof pattern === "string") {
endIndex = index + pattern.length;
@@ -1004,6 +1074,9 @@ var dart = [
substring$1: function($receiver, startIndex) {
return this.substring$2($receiver, startIndex, null);
},
+ toLowerCase$0: function(receiver) {
+ return receiver.toLowerCase();
+ },
trim$0: function(receiver) {
var result, endIndex, startIndex, t1, endIndex0;
result = receiver.trim();
@@ -1176,7 +1249,8 @@ var dart = [
"^": "",
_callInIsolate: function(isolate, $function) {
var result = isolate.eval$1($function);
- init.globalState.topEventLoop.run$0();
+ if (!init.globalState.currentContext._isExecutingEvent)
+ init.globalState.topEventLoop.run$0();
return result;
},
leaveJsAsync: function() {
@@ -1185,19 +1259,26 @@ var dart = [
startRootIsolate: function(entry, args) {
var t1, t2, t3, t4, t5, rootContext;
t1 = {};
- t1.args_0 = args;
+ t1._captured_args_0 = args;
args = args;
- t1.args_0 = args;
+ t1._captured_args_0 = args;
if (args == null) {
args = [];
- t1.args_0 = args;
+ t1._captured_args_0 = args;
t2 = args;
} else
t2 = args;
if (!J.getInterceptor(t2).$isList)
throw H.wrapException(P.ArgumentError$("Arguments to main must be a List: " + H.S(t2)));
t2 = new H._Manager(0, 0, 1, null, null, null, null, null, null, null, null, null, entry);
- t2._Manager$1(entry);
+ t2._nativeDetectEnvironment$0();
+ t2.topEventLoop = new H._EventLoop(P.ListQueue$(null, H._IsolateEvent), 0);
+ t2.isolates = P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, H._IsolateContext);
+ t2.managers = P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, null);
+ if (t2.isWorker === true) {
+ t2.mainManager = new H._MainManagerStub();
+ t2._nativeInitWorkerMessageHandler$0();
+ }
init.globalState = t2;
if (init.globalState.isWorker === true)
return;
@@ -1227,9 +1308,9 @@ var dart = [
var currentScript = init.currentScript;
if (currentScript != null)
return String(currentScript.src);
- if (typeof version == "function" && typeof os == "object" && "system" in os)
+ if (typeof version == "function" && typeof os == "object" && "setenv" in os)
return H.IsolateNatives_computeThisScriptFromTrace();
- if (typeof version == "function" && typeof system == "function")
+ if (typeof version == "function" && typeof os == "object" && "getenv" in os)
return thisFilename();
if (init.globalState.isWorker === true)
return H.IsolateNatives_computeThisScriptFromTrace();
@@ -1352,20 +1433,20 @@ var dart = [
return new H._Deserializer(true, []).deserialize$1(new H._Serializer(false, P.LinkedHashMap_LinkedHashMap$identity(null, P.$int)).serialize$1(message));
},
startRootIsolate_closure: {
- "^": "Closure:0;box_0,entry_1",
+ "^": "Closure:0;__isolate_helper$_box_0,_captured_entry_1",
call$0: function() {
- this.entry_1.call$1(this.box_0.args_0);
+ this._captured_entry_1.call$1(this.__isolate_helper$_box_0._captured_args_0);
}
},
startRootIsolate_closure0: {
- "^": "Closure:0;box_0,entry_2",
+ "^": "Closure:0;__isolate_helper$_box_0,_captured_entry_2",
call$0: function() {
- this.entry_2.call$2(this.box_0.args_0, null);
+ this._captured_entry_2.call$2(this.__isolate_helper$_box_0._captured_args_0, null);
}
},
_Manager: {
"^": "Object;nextIsolateId,currentManagerId,nextManagerId,currentContext,rootContext,topEventLoop,fromCommandLine,isWorker,supportsWorkers,isolates,mainManager,managers,entry",
- _Manager$1: function(entry) {
+ _nativeDetectEnvironment$0: function() {
var t1, t2, t3;
t1 = self.window == null;
t2 = self.Worker;
@@ -1377,26 +1458,21 @@ var dart = [
t2 = true;
this.supportsWorkers = t2;
this.fromCommandLine = t1 && !t3;
- this.topEventLoop = new H._EventLoop(P.ListQueue$(null, H._IsolateEvent), 0);
- this.isolates = P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, H._IsolateContext);
- this.managers = P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, null);
- if (this.isWorker === true) {
- t1 = new H._MainManagerStub();
- this.mainManager = t1;
- self.onmessage = function(f, a) {
- return function(e) {
- f(a, e);
- };
- }(H.IsolateNatives__processWorkerMessage, t1);
- self.dartPrint = self.dartPrint || function(serialize) {
- return function(object) {
- if (self.console && self.console.log)
- self.console.log(object);
- else
- self.postMessage(serialize(object));
- };
- }(H._Manager__serializePrintMessage);
- }
+ },
+ _nativeInitWorkerMessageHandler$0: function() {
+ self.onmessage = function(f, a) {
+ return function(e) {
+ f(a, e);
+ };
+ }(H.IsolateNatives__processWorkerMessage, this.mainManager);
+ self.dartPrint = self.dartPrint || function(serialize) {
+ return function(object) {
+ if (self.console && self.console.log)
+ self.console.log(object);
+ else
+ self.postMessage(serialize(object));
+ };
+ }(H._Manager__serializePrintMessage);
},
static: {_Manager__serializePrintMessage: function(object) {
var t1 = P.LinkedHashMap_LinkedHashMap$_literal(["command", "print", "msg", object], null, null);
@@ -1533,11 +1609,12 @@ var dart = [
J.send$1$x(t2._collection$_current, message);
},
eval$1: function(code) {
- var old, result, e, s, exception, t1;
+ var old, result, oldIsExecutingEvent, e, s, exception, t1;
old = init.globalState.currentContext;
init.globalState.currentContext = this;
$ = this.isolateStatics;
result = null;
+ oldIsExecutingEvent = this._isExecutingEvent;
this._isExecutingEvent = true;
try {
result = code.call$0();
@@ -1552,7 +1629,7 @@ var dart = [
throw exception;
}
} finally {
- this._isExecutingEvent = false;
+ this._isExecutingEvent = oldIsExecutingEvent;
init.globalState.currentContext = old;
if (old != null)
$ = old.get$isolateStatics();
@@ -1582,7 +1659,7 @@ var dart = [
t1 = this._scheduledControlEvents;
if (t1 != null)
t1.clear$0(0);
- for (t1 = this.ports, t2 = t1.get$values(t1), t2 = H.setRuntimeTypeInfo(new H.MappedIterator(null, J.get$iterator$ax(t2._iterable), t2._f), [H.getTypeArgumentByIndex(t2, 0), H.getTypeArgumentByIndex(t2, 1)]); t2.moveNext$0();)
+ for (t1 = this.ports, t2 = t1.get$values(t1), t2 = H.setRuntimeTypeInfo(new H.MappedIterator(null, J.get$iterator$ax(t2.__internal$_iterable), t2._f), [H.getTypeArgumentByIndex(t2, 0), H.getTypeArgumentByIndex(t2, 1)]); t2.moveNext$0();)
t2._current.__isolate_helper$_close$0();
t1.clear$0(0);
this.weakPorts.clear$0(0);
@@ -1590,16 +1667,16 @@ var dart = [
this.errorPorts.clear$0(0);
t1 = this.doneHandlers;
if (t1 != null) {
- for (t1 = new H.ListIterator(t1, t1.length, 0, null); t1.moveNext$0();)
- J.send$1$x(t1._current, null);
+ for (t1 = new J.ArrayIterator(t1, t1.length, 0, null); t1.moveNext$0();)
+ J.send$1$x(t1.__interceptors$_current, null);
this.doneHandlers = null;
}
}, "call$0", "get$kill", 0, 0, 1]
},
_IsolateContext_handlePing_respond: {
- "^": "Closure:1;responsePort_0",
+ "^": "Closure:1;_captured_responsePort_0",
call$0: function() {
- J.send$1$x(this.responsePort_0, null);
+ J.send$1$x(this._captured_responsePort_0, null);
}
},
_EventLoop: {
@@ -1636,7 +1713,7 @@ var dart = [
for (; this.runIteration$0();)
;
},
- run$0: function() {
+ run$0: [function() {
var e, trace, exception, t1, t2;
if (init.globalState.isWorker !== true)
this._runHelper$0();
@@ -1653,12 +1730,12 @@ var dart = [
t1.toString;
self.postMessage(t2);
}
- }
+ }, "call$0", "get$run", 0, 0, 1]
},
_EventLoop__runHelper_next: {
- "^": "Closure:1;this_0",
+ "^": "Closure:1;__isolate_helper$_captured_this_0",
call$0: function() {
- if (!this.this_0.runIteration$0())
+ if (!this.__isolate_helper$_captured_this_0.runIteration$0())
return;
P.Timer_Timer(C.Duration_0, this);
}
@@ -1678,28 +1755,28 @@ var dart = [
"^": "Object;"
},
IsolateNatives__processWorkerMessage_closure: {
- "^": "Closure:0;entryPoint_0,args_1,message_2,isSpawnUri_3,startPaused_4,replyTo_5",
+ "^": "Closure:0;_captured_entryPoint_0,_captured_args_1,_captured_message_2,_captured_isSpawnUri_3,_captured_startPaused_4,_captured_replyTo_5",
call$0: function() {
- H.IsolateNatives__startIsolate(this.entryPoint_0, this.args_1, this.message_2, this.isSpawnUri_3, this.startPaused_4, this.replyTo_5);
+ H.IsolateNatives__startIsolate(this._captured_entryPoint_0, this._captured_args_1, this._captured_message_2, this._captured_isSpawnUri_3, this._captured_startPaused_4, this._captured_replyTo_5);
}
},
IsolateNatives__startIsolate_runStartFunction: {
- "^": "Closure:1;topLevel_0,args_1,message_2,isSpawnUri_3,context_4",
+ "^": "Closure:1;_captured_topLevel_0,_captured_args_1,_captured_message_2,_captured_isSpawnUri_3,_captured_context_4",
call$0: function() {
var t1, t2, t3;
- this.context_4.initialized = true;
- if (this.isSpawnUri_3 !== true)
- this.topLevel_0.call$1(this.message_2);
+ this._captured_context_4.initialized = true;
+ if (this._captured_isSpawnUri_3 !== true)
+ this._captured_topLevel_0.call$1(this._captured_message_2);
else {
- t1 = this.topLevel_0;
+ t1 = this._captured_topLevel_0;
t2 = H.getDynamicRuntimeType();
t3 = H.buildFunctionType(t2, [t2, t2])._isTest$1(t1);
if (t3)
- t1.call$2(this.args_1, this.message_2);
+ t1.call$2(this._captured_args_1, this._captured_message_2);
else {
t2 = H.buildFunctionType(t2, [t2])._isTest$1(t1);
if (t2)
- t1.call$1(this.args_1);
+ t1.call$1(this._captured_args_1);
else
t1.call$0();
}
@@ -1769,11 +1846,11 @@ var dart = [
}
},
_NativeJsSendPort_send_closure: {
- "^": "Closure:0;this_0,msg_1",
+ "^": "Closure:0;__isolate_helper$_captured_this_0,_captured_msg_1",
call$0: function() {
- var t1 = this.this_0._receivePort;
+ var t1 = this.__isolate_helper$_captured_this_0._receivePort;
if (!t1.get$_isClosed())
- t1.__isolate_helper$_add$1(this.msg_1);
+ t1.__isolate_helper$_add$1(this._captured_msg_1);
}
},
_WorkerSendPort: {
@@ -1876,24 +1953,24 @@ var dart = [
}}
},
TimerImpl_internalCallback: {
- "^": "Closure:1;this_0,callback_1",
+ "^": "Closure:1;__isolate_helper$_captured_this_0,_captured_callback_1",
call$0: function() {
- this.this_0._handle = null;
- this.callback_1.call$0();
+ this.__isolate_helper$_captured_this_0._handle = null;
+ this._captured_callback_1.call$0();
}
},
TimerImpl_internalCallback0: {
- "^": "Closure:1;this_2,callback_3",
+ "^": "Closure:1;_captured_this_2,_captured_callback_3",
call$0: function() {
- this.this_2._handle = null;
+ this._captured_this_2._handle = null;
H.leaveJsAsync();
- this.callback_3.call$0();
+ this._captured_callback_3.call$0();
}
},
TimerImpl$periodic_closure: {
- "^": "Closure:0;this_0,callback_1",
+ "^": "Closure:0;__isolate_helper$_captured_this_0,_captured_callback_1",
call$0: function() {
- this.callback_1.call$1(this.this_0);
+ this._captured_callback_1.call$1(this.__isolate_helper$_captured_this_0);
}
},
CapabilityImpl: {
@@ -2241,69 +2318,36 @@ var dart = [
}
return hash;
},
- Primitives__throwFormatException: [function(string) {
- throw H.wrapException(P.FormatException$(string, null, null));
- }, "call$1", "Primitives__throwFormatException$closure", 2, 0, 4],
+ Primitives__parseIntError: function(source, handleError) {
+ throw H.wrapException(P.FormatException$(source, null, null));
+ },
Primitives_parseInt: function(source, radix, handleError) {
- var match, t1, maxCharCode, digitsPart, i, t2;
- handleError = H.Primitives__throwFormatException$closure();
+ var match, decimalMatch, maxCharCode, digitsPart, t1, i;
H.checkString(source);
match = /^\s*[+-]?((0x[a-f0-9]+)|(\d+)|([a-z0-9]+))\s*$/i.exec(source);
+ if (match == null)
+ return H.Primitives__parseIntError(source, handleError);
+ if (3 >= match.length)
+ return H.ioore(match, 3);
+ decimalMatch = match[3];
if (radix == null) {
- if (match != null) {
- t1 = match.length;
- if (2 >= t1)
- return H.ioore(match, 2);
- if (match[2] != null)
- return parseInt(source, 16);
- if (3 >= t1)
- return H.ioore(match, 3);
- if (match[3] != null)
- return parseInt(source, 10);
- return handleError.call$1(source);
- }
- radix = 10;
- } else {
- if (radix < 2 || radix > 36)
- throw H.wrapException(P.RangeError$("Radix " + H.S(radix) + " not in range 2..36"));
- if (match != null) {
- if (radix === 10) {
- if (3 >= match.length)
- return H.ioore(match, 3);
- t1 = match[3] != null;
- } else
- t1 = false;
- if (t1)
- return parseInt(source, 10);
- if (!(radix < 10)) {
- if (3 >= match.length)
- return H.ioore(match, 3);
- t1 = match[3] == null;
- } else
- t1 = true;
- if (t1) {
- maxCharCode = radix <= 10 ? 48 + radix - 1 : 97 + radix - 10 - 1;
- if (1 >= match.length)
- return H.ioore(match, 1);
- digitsPart = match[1];
- t1 = J.getInterceptor$asx(digitsPart);
- i = 0;
- while (true) {
- t2 = t1.get$length(digitsPart);
- if (typeof t2 !== "number")
- return H.iae(t2);
- if (!(i < t2))
- break;
- t1.codeUnitAt$1(digitsPart, 0);
- if (C.JSString_methods.codeUnitAt$1(digitsPart, i) > maxCharCode)
- return handleError.call$1(source);
- ++i;
- }
- }
- }
+ if (decimalMatch != null)
+ return parseInt(source, 10);
+ if (match[2] != null)
+ return parseInt(source, 16);
+ return H.Primitives__parseIntError(source, handleError);
+ }
+ if (radix < 2 || radix > 36)
+ throw H.wrapException(P.RangeError$range(radix, 2, 36, "radix", null));
+ if (radix === 10 && decimalMatch != null)
+ return parseInt(source, 10);
+ if (radix < 10 || decimalMatch == null) {
+ maxCharCode = radix <= 10 ? 47 + radix : 86 + radix;
+ digitsPart = match[1];
+ for (t1 = digitsPart.length, i = 0; i < t1; ++i)
+ if ((C.JSString_methods.codeUnitAt$1(digitsPart, i) | 32) > maxCharCode)
+ return H.Primitives__parseIntError(source, handleError);
}
- if (match == null)
- return handleError.call$1(source);
return parseInt(source, radix);
},
Primitives_objectTypeName: function(object) {
@@ -2344,8 +2388,8 @@ var dart = [
var a, t1, i;
a = [];
a.$builtinTypeInfo = [P.$int];
- for (t1 = new H.ListIterator(codePoints, codePoints.length, 0, null); t1.moveNext$0();) {
- i = t1._current;
+ for (t1 = new J.ArrayIterator(codePoints, codePoints.length, 0, null); t1.moveNext$0();) {
+ i = t1.__interceptors$_current;
if (typeof i !== "number" || Math.floor(i) !== i)
throw H.wrapException(P.ArgumentError$(i));
if (i <= 65535)
@@ -2360,8 +2404,8 @@ var dart = [
},
Primitives_stringFromCharCodes: function(charCodes) {
var t1, i;
- for (t1 = new H.ListIterator(charCodes, charCodes.length, 0, null); t1.moveNext$0();) {
- i = t1._current;
+ for (t1 = new J.ArrayIterator(charCodes, charCodes.length, 0, null); t1.moveNext$0();) {
+ i = t1.__interceptors$_current;
if (typeof i !== "number" || Math.floor(i) !== i)
throw H.wrapException(P.ArgumentError$(i));
if (i < 0)
@@ -2512,14 +2556,11 @@ var dart = [
t2 = true;
} else
t2 = true;
- if (t2) {
- t2 = match == null ? null : match.method;
- return t1.call$1(new H.NullError(message, t2));
- }
+ if (t2)
+ return t1.call$1(new H.NullError(message, match == null ? null : match.method));
}
}
- t2 = typeof message === "string" ? message : "";
- return t1.call$1(new H.UnknownJsTypeError(t2));
+ return t1.call$1(new H.UnknownJsTypeError(typeof message === "string" ? message : ""));
}
if (ex instanceof RangeError) {
if (typeof message === "string" && message.indexOf("call stack") !== -1)
@@ -2596,12 +2637,7 @@ var dart = [
$constructor = function() {
this.$initialize();
};
- else if (typeof dart_precompiled == "function") {
- t1 = function(a, b, c, d) {
- this.$initialize(a, b, c, d);
- };
- $constructor = t1;
- } else {
+ else {
t1 = $.Closure_functionCounter;
$.Closure_functionCounter = J.$add$ns(t1, 1);
t1 = new Function("a", "b", "c", "d", "this.$initialize(a,b,c,d);" + t1);
@@ -2622,7 +2658,7 @@ var dart = [
if (typeof functionType == "number")
signatureFunction = function(s) {
return function() {
- return init.metadata[s];
+ return init.types[s];
};
}(functionType);
else if (t1 && typeof functionType == "function") {
@@ -2704,7 +2740,8 @@ var dart = [
arity = $function.length;
lookedUpFunction = receiver[stubName];
t1 = $function == null ? lookedUpFunction == null : $function === lookedUpFunction;
- if (typeof dart_precompiled == "function" || !t1 || arity >= 27)
+ t2 = !t1 || arity >= 27;
+ if (t2)
return H.Closure_cspForwardCall(arity, !t1, stubName, $function);
if (arity === 0) {
t1 = $.BoundClosure_selfFieldNameCache;
@@ -2783,7 +2820,7 @@ var dart = [
}
},
Closure_forwardInterceptedCallTo: function(receiver, $function) {
- var selfField, t1, stubName, arity, isCsp, lookedUpFunction, t2, $arguments;
+ var selfField, t1, stubName, arity, lookedUpFunction, t2, t3, $arguments;
selfField = H.BoundClosure_selfFieldName();
t1 = $.BoundClosure_receiverFieldNameCache;
if (t1 == null) {
@@ -2792,10 +2829,10 @@ var dart = [
}
stubName = $function.$stubName;
arity = $function.length;
- isCsp = typeof dart_precompiled == "function";
lookedUpFunction = receiver[stubName];
t2 = $function == null ? lookedUpFunction == null : $function === lookedUpFunction;
- if (isCsp || !t2 || arity >= 28)
+ t3 = !t2 || arity >= 28;
+ if (t3)
return H.Closure_cspForwardInterceptedCall(arity, !t2, stubName, $function);
if (arity === 1) {
t1 = "return function(){return this." + H.S(selfField) + "." + H.S(stubName) + "(this." + H.S(t1) + ");";
@@ -2824,6 +2861,20 @@ var dart = [
return value;
throw H.wrapException(H.CastErrorImplementation$(H.Primitives_objectTypeName(value), "int"));
},
+ propertyTypeCastError: function(value, property) {
+ var t1 = J.getInterceptor$asx(property);
+ throw H.wrapException(H.CastErrorImplementation$(H.Primitives_objectTypeName(value), t1.substring$2(property, 3, t1.get$length(property))));
+ },
+ interceptedTypeCast: function(value, property) {
+ var t1;
+ if (value != null)
+ t1 = typeof value === "object" && J.getInterceptor(value)[property];
+ else
+ t1 = true;
+ if (t1)
+ return value;
+ H.propertyTypeCastError(value, property);
+ },
throwCyclicInit: function(staticName) {
throw H.wrapException(new P.CyclicInitializationError("Cyclic initialization for static " + H.S(staticName)));
},
@@ -3194,17 +3245,16 @@ var dart = [
applyHooksTransformer: function(transformer, hooks) {
return transformer(hooks) || hooks;
},
- allMatchesInStringUnchecked: function(needle, haystack, startIndex) {
- var result, t1, $length, patternLength, position, endIndex;
+ allMatchesInStringUnchecked: function(pattern, string, startIndex) {
+ var result, $length, patternLength, position, endIndex;
result = H.setRuntimeTypeInfo([], [P.Match]);
- t1 = J.getInterceptor$asx(haystack);
- $length = t1.get$length(haystack);
- patternLength = needle.length;
+ $length = J.get$length$asx(string);
+ patternLength = pattern.length;
for (; true;) {
- position = t1.indexOf$2(haystack, needle, startIndex);
+ position = string.indexOf(pattern, startIndex);
if (position === -1)
break;
- result.push(new H.StringMatch(position, haystack, needle));
+ result.push(new H.StringMatch(position, string, pattern));
endIndex = position + patternLength;
if (endIndex === $length)
break;
@@ -3216,7 +3266,7 @@ var dart = [
stringContainsUnchecked: function(receiver, other, startIndex) {
var t1;
if (typeof other === "string")
- return C.JSString_methods.indexOf$2(receiver, other, startIndex) !== -1;
+ return receiver.indexOf(other, startIndex) >= 0;
else {
t1 = J.getInterceptor(other);
if (!!t1.$isJSSyntaxRegExp) {
@@ -3226,7 +3276,7 @@ var dart = [
return J.get$isNotEmpty$asx(t1.allMatches$1(other, C.JSString_methods.substring$1(receiver, startIndex)));
}
},
- stringReplaceFirstRE: function(receiver, regexp, to, startIndex) {
+ stringReplaceFirstRE: function(receiver, regexp, replacement, startIndex) {
var match, t1, start, t2;
match = regexp._execGlobal$2(receiver, startIndex);
if (match == null)
@@ -3239,51 +3289,51 @@ var dart = [
t1 = J.get$length$asx(t1[0]);
if (typeof t1 !== "number")
return H.iae(t1);
- return H.stringReplaceRangeUnchecked(receiver, start, t2 + t1, to);
+ return H.stringReplaceRangeUnchecked(receiver, start, t2 + t1, replacement);
},
- stringReplaceAllUnchecked: function(receiver, from, to) {
+ stringReplaceAllUnchecked: function(receiver, pattern, replacement) {
var $length, t1, i, nativeRegexp;
- H.checkString(to);
- if (typeof from === "string")
- if (from === "")
+ H.checkString(replacement);
+ if (typeof pattern === "string")
+ if (pattern === "")
if (receiver === "")
- return to;
+ return replacement;
else {
$length = receiver.length;
- for (t1 = to, i = 0; i < $length; ++i)
- t1 = t1 + receiver[i] + to;
+ for (t1 = replacement, i = 0; i < $length; ++i)
+ t1 = t1 + receiver[i] + replacement;
return t1.charCodeAt(0) == 0 ? t1 : t1;
}
else
- return receiver.replace(new RegExp(from.replace(new RegExp("[[\\]{}()*+?.\\\\^$|]", 'g'), "\\$&"), 'g'), to.replace(/\$/g, "$$$$"));
- else if (from instanceof H.JSSyntaxRegExp) {
- nativeRegexp = from.get$_nativeGlobalVersion();
+ return receiver.replace(new RegExp(pattern.replace(new RegExp("[[\\]{}()*+?.\\\\^$|]", 'g'), "\\$&"), 'g'), replacement.replace(/\$/g, "$$$$"));
+ else if (pattern instanceof H.JSSyntaxRegExp) {
+ nativeRegexp = pattern.get$_nativeGlobalVersion();
nativeRegexp.lastIndex = 0;
- return receiver.replace(nativeRegexp, to.replace(/\$/g, "$$$$"));
+ return receiver.replace(nativeRegexp, replacement.replace(/\$/g, "$$$$"));
} else {
- if (from == null)
+ if (pattern == null)
H.throwExpression(P.ArgumentError$(null));
throw H.wrapException("String.replaceAll(Pattern) UNIMPLEMENTED");
}
},
- stringReplaceFirstUnchecked: function(receiver, from, to, startIndex) {
+ stringReplaceFirstUnchecked: function(receiver, pattern, replacement, startIndex) {
var index, t1, matches, match;
- if (typeof from === "string") {
- index = C.JSString_methods.indexOf$2(receiver, from, startIndex);
+ if (typeof pattern === "string") {
+ index = receiver.indexOf(pattern, startIndex);
if (index < 0)
return receiver;
- return H.stringReplaceRangeUnchecked(receiver, index, index + from.length, to);
+ return H.stringReplaceRangeUnchecked(receiver, index, index + pattern.length, replacement);
}
- t1 = J.getInterceptor(from);
+ t1 = J.getInterceptor(pattern);
if (!!t1.$isJSSyntaxRegExp)
- return startIndex === 0 ? receiver.replace(from._nativeRegExp, to.replace(/\$/g, "$$$$")) : H.stringReplaceFirstRE(receiver, from, to, startIndex);
- if (from == null)
+ return startIndex === 0 ? receiver.replace(pattern._nativeRegExp, replacement.replace(/\$/g, "$$$$")) : H.stringReplaceFirstRE(receiver, pattern, replacement, startIndex);
+ if (pattern == null)
H.throwExpression(P.ArgumentError$(null));
- matches = J.get$iterator$ax(t1.allMatches$2(from, receiver, startIndex));
+ matches = J.get$iterator$ax(t1.allMatches$2(pattern, receiver, startIndex));
if (!matches.moveNext$0())
return receiver;
match = matches.get$current();
- return C.JSString_methods.substring$2(receiver, 0, J.get$start$x(match)) + to + C.JSString_methods.substring$1(receiver, match.get$end());
+ return C.JSString_methods.replaceRange$3(receiver, J.get$start$x(match), match.get$end(), replacement);
},
stringReplaceRangeUnchecked: function(receiver, start, end, replacement) {
var prefix, suffix;
@@ -3386,8 +3436,7 @@ var dart = [
var t1, t2;
t1 = match == null;
t2 = t1 ? null : match.method;
- t1 = t1 ? null : match.receiver;
- return new H.JsNoSuchMethodError(_message, t2, t1);
+ return new H.JsNoSuchMethodError(_message, t2, t1 ? null : match.receiver);
}}
},
UnknownJsTypeError: {
@@ -3398,11 +3447,11 @@ var dart = [
}
},
unwrapException_saveStackTrace: {
- "^": "Closure:2;ex_0",
+ "^": "Closure:2;_captured_ex_0",
call$1: function(error) {
if (!!J.getInterceptor(error).$isError)
if (error.$thrownJsError == null)
- error.$thrownJsError = this.ex_0;
+ error.$thrownJsError = this._captured_ex_0;
return error;
}
},
@@ -3421,33 +3470,33 @@ var dart = [
}
},
invokeClosure_closure: {
- "^": "Closure:0;closure_0",
+ "^": "Closure:0;_captured_closure_0",
call$0: function() {
- return this.closure_0.call$0();
+ return this._captured_closure_0.call$0();
}
},
invokeClosure_closure0: {
- "^": "Closure:0;closure_1,arg1_2",
+ "^": "Closure:0;_captured_closure_1,_captured_arg1_2",
call$0: function() {
- return this.closure_1.call$1(this.arg1_2);
+ return this._captured_closure_1.call$1(this._captured_arg1_2);
}
},
invokeClosure_closure1: {
- "^": "Closure:0;closure_3,arg1_4,arg2_5",
+ "^": "Closure:0;_captured_closure_3,_captured_arg1_4,_captured_arg2_5",
call$0: function() {
- return this.closure_3.call$2(this.arg1_4, this.arg2_5);
+ return this._captured_closure_3.call$2(this._captured_arg1_4, this._captured_arg2_5);
}
},
invokeClosure_closure2: {
- "^": "Closure:0;closure_6,arg1_7,arg2_8,arg3_9",
+ "^": "Closure:0;_captured_closure_6,_captured_arg1_7,_captured_arg2_8,_captured_arg3_9",
call$0: function() {
- return this.closure_6.call$3(this.arg1_7, this.arg2_8, this.arg3_9);
+ return this._captured_closure_6.call$3(this._captured_arg1_7, this._captured_arg2_8, this._captured_arg3_9);
}
},
invokeClosure_closure3: {
- "^": "Closure:0;closure_10,arg1_11,arg2_12,arg3_13,arg4_14",
+ "^": "Closure:0;_captured_closure_10,_captured_arg1_11,_captured_arg2_12,_captured_arg3_13,_captured_arg4_14",
call$0: function() {
- return this.closure_10.call$4(this.arg1_11, this.arg2_12, this.arg3_13, this.arg4_14);
+ return this._captured_closure_10.call$4(this._captured_arg1_11, this._captured_arg2_12, this._captured_arg3_13, this._captured_arg4_14);
}
},
Closure: {
@@ -3457,6 +3506,9 @@ var dart = [
},
get$$call: function() {
return this;
+ },
+ get$$call: function() {
+ return this;
}
},
TearOffClosure: {
@@ -3844,9 +3896,9 @@ var dart = [
}}
},
JsLinkedHashMap_values_closure: {
- "^": "Closure:2;this_0",
+ "^": "Closure:2;__js_helper$_captured_this_0",
call$1: function(each) {
- return this.this_0.$index(0, each);
+ return this.__js_helper$_captured_this_0.$index(0, each);
}
},
LinkedHashMapCell: {
@@ -3907,21 +3959,21 @@ var dart = [
}
},
initHooks_closure: {
- "^": "Closure:2;getTag_0",
+ "^": "Closure:2;_captured_getTag_0",
call$1: function(o) {
- return this.getTag_0(o);
+ return this._captured_getTag_0(o);
}
},
initHooks_closure0: {
- "^": "Closure:3;getUnknownTag_1",
+ "^": "Closure:3;_captured_getUnknownTag_1",
call$2: function(o, tag) {
- return this.getUnknownTag_1(o, tag);
+ return this._captured_getUnknownTag_1(o, tag);
}
},
initHooks_closure1: {
- "^": "Closure:4;prototypeForTag_2",
+ "^": "Closure:4;_captured_prototypeForTag_2",
call$1: function(tag) {
- return this.prototypeForTag_2(tag);
+ return this._captured_prototypeForTag_2(tag);
}
},
JSSyntaxRegExp: {
@@ -3989,7 +4041,7 @@ var dart = [
return H._MatchImplementation$(this, match);
},
matchAsPrefix$2: function(_, string, start) {
- if (start > string.length)
+ if (start < 0 || start > string.length)
throw H.wrapException(P.RangeError$range(start, 0, string.length, null, null));
return this._execAnchored$2(string, start);
},
@@ -4204,12 +4256,15 @@ var dart = [
return value;
},
toList$1$growable: function(_, growable) {
- var result, i, t1;
+ var result, t1, i;
if (growable) {
result = H.setRuntimeTypeInfo([], [H.getRuntimeTypeArgument(this, "ListIterable", 0)]);
C.JSArray_methods.set$length(result, this.get$length(this));
- } else
- result = H.setRuntimeTypeInfo(Array(this.get$length(this)), [H.getRuntimeTypeArgument(this, "ListIterable", 0)]);
+ } else {
+ t1 = Array(this.get$length(this));
+ t1.fixed$length = Array;
+ result = H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "ListIterable", 0)]);
+ }
for (i = 0; i < this.get$length(this); ++i) {
t1 = this.elementAt$1(0, i);
if (i >= result.length)
@@ -4224,10 +4279,10 @@ var dart = [
$isEfficientLength: 1
},
SubListIterable: {
- "^": "ListIterable;_iterable,__internal$_start,_endOrLength",
+ "^": "ListIterable;__internal$_iterable,__internal$_start,_endOrLength",
get$_endIndex: function() {
var $length, t1, t2;
- $length = J.get$length$asx(this._iterable);
+ $length = J.get$length$asx(this.__internal$_iterable);
t1 = this._endOrLength;
if (t1 != null) {
if (typeof t1 !== "number")
@@ -4241,7 +4296,7 @@ var dart = [
},
get$_startIndex: function() {
var $length, t1;
- $length = J.get$length$asx(this._iterable);
+ $length = J.get$length$asx(this.__internal$_iterable);
t1 = this.__internal$_start;
if (t1 > $length)
return $length;
@@ -4249,7 +4304,7 @@ var dart = [
},
get$length: function(_) {
var $length, t1, t2, t3;
- $length = J.get$length$asx(this._iterable);
+ $length = J.get$length$asx(this.__internal$_iterable);
t1 = this.__internal$_start;
if (t1 >= $length)
return 0;
@@ -4278,7 +4333,7 @@ var dart = [
t1 = true;
if (t1)
throw H.wrapException(P.IndexError$(index, this, "index", null, null));
- return J.elementAt$1$ax(this._iterable, realIndex);
+ return J.elementAt$1$ax(this.__internal$_iterable, realIndex);
},
SubListIterable$3: function(_iterable, _start, _endOrLength, $E) {
var t1, t2;
@@ -4302,42 +4357,42 @@ var dart = [
}}
},
ListIterator: {
- "^": "Object;_iterable,__internal$_length,_index,_current",
+ "^": "Object;__internal$_iterable,__internal$_length,__internal$_index,_current",
get$current: function() {
return this._current;
},
moveNext$0: function() {
var t1, t2, $length, t3;
- t1 = this._iterable;
+ t1 = this.__internal$_iterable;
t2 = J.getInterceptor$asx(t1);
$length = t2.get$length(t1);
if (this.__internal$_length !== $length)
throw H.wrapException(P.ConcurrentModificationError$(t1));
- t3 = this._index;
+ t3 = this.__internal$_index;
if (t3 >= $length) {
this._current = null;
return false;
}
this._current = t2.elementAt$1(t1, t3);
- ++this._index;
+ ++this.__internal$_index;
return true;
}
},
MappedIterable: {
- "^": "IterableBase;_iterable,_f",
+ "^": "IterableBase;__internal$_iterable,_f",
get$iterator: function(_) {
- var t1 = new H.MappedIterator(null, J.get$iterator$ax(this._iterable), this._f);
+ var t1 = new H.MappedIterator(null, J.get$iterator$ax(this.__internal$_iterable), this._f);
t1.$builtinTypeInfo = this.$builtinTypeInfo;
return t1;
},
get$length: function(_) {
- return J.get$length$asx(this._iterable);
+ return J.get$length$asx(this.__internal$_iterable);
},
get$isEmpty: function(_) {
- return J.get$isEmpty$asx(this._iterable);
+ return J.get$isEmpty$asx(this.__internal$_iterable);
},
get$last: function(_) {
- return this._f$1(J.get$last$ax(this._iterable));
+ return this._f$1(J.get$last$ax(this.__internal$_iterable));
},
_f$1: function(arg0) {
return this._f.call$1(arg0);
@@ -4352,7 +4407,7 @@ var dart = [
}}
},
EfficientLengthMappedIterable: {
- "^": "MappedIterable;_iterable,_f",
+ "^": "MappedIterable;__internal$_iterable,_f",
$isEfficientLength: 1
},
MappedIterator: {
@@ -4393,9 +4448,9 @@ var dart = [
$isEfficientLength: 1
},
WhereIterable: {
- "^": "IterableBase;_iterable,_f",
+ "^": "IterableBase;__internal$_iterable,_f",
get$iterator: function(_) {
- var t1 = new H.WhereIterator(J.get$iterator$ax(this._iterable), this._f);
+ var t1 = new H.WhereIterator(J.get$iterator$ax(this.__internal$_iterable), this._f);
t1.$builtinTypeInfo = this.$builtinTypeInfo;
return t1;
}
@@ -4416,9 +4471,9 @@ var dart = [
}
},
SkipWhileIterable: {
- "^": "IterableBase;_iterable,_f",
+ "^": "IterableBase;__internal$_iterable,_f",
get$iterator: function(_) {
- var t1 = new H.SkipWhileIterator(J.get$iterator$ax(this._iterable), this._f, false);
+ var t1 = new H.SkipWhileIterator(J.get$iterator$ax(this.__internal$_iterable), this._f, false);
t1.$builtinTypeInfo = this.$builtinTypeInfo;
return t1;
}
@@ -4502,7 +4557,7 @@ var dart = [
if (self.MutationObserver != null && self.document != null) {
div = self.document.createElement("div");
span = self.document.createElement("span");
- t1.storedCallback_0 = null;
+ t1._captured_storedCallback_0 = null;
new self.MutationObserver(H.convertDartClosureToJS(new P._AsyncRun__initializeScheduleImmediate_internalCallback(t1), 1)).observe(div, {childList: true});
return new P._AsyncRun__initializeScheduleImmediate_closure(t1, div, span);
} else if (self.setImmediate != null)
@@ -4512,14 +4567,14 @@ var dart = [
_AsyncRun__scheduleImmediateJsOverride: [function(callback) {
++init.globalState.topEventLoop._activeJsAsyncCount;
self.scheduleImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmediateJsOverride_internalCallback(callback), 0));
- }, "call$1", "_AsyncRun__scheduleImmediateJsOverride$closure", 2, 0, 29],
+ }, "call$1", "_AsyncRun__scheduleImmediateJsOverride$closure", 2, 0, 35],
_AsyncRun__scheduleImmediateWithSetImmediate: [function(callback) {
++init.globalState.topEventLoop._activeJsAsyncCount;
self.setImmediate(H.convertDartClosureToJS(new P._AsyncRun__scheduleImmediateWithSetImmediate_internalCallback(callback), 0));
- }, "call$1", "_AsyncRun__scheduleImmediateWithSetImmediate$closure", 2, 0, 29],
+ }, "call$1", "_AsyncRun__scheduleImmediateWithSetImmediate$closure", 2, 0, 35],
_AsyncRun__scheduleImmediateWithTimer: [function(callback) {
P.Timer__createTimer(C.Duration_0, callback);
- }, "call$1", "_AsyncRun__scheduleImmediateWithTimer$closure", 2, 0, 29],
+ }, "call$1", "_AsyncRun__scheduleImmediateWithTimer$closure", 2, 0, 35],
_registerErrorHandler: function(errorHandler, zone) {
var t1 = H.getDynamicRuntimeType();
t1 = H.buildFunctionType(t1, [t1, t1])._isTest$1(errorHandler);
@@ -4606,12 +4661,12 @@ var dart = [
return new P._AddStreamState_makeErrorHandler_closure(controller);
},
_nullDataHandler: [function(value) {
- }, "call$1", "_nullDataHandler$closure", 2, 0, 30],
+ }, "call$1", "_nullDataHandler$closure", 2, 0, 53],
_nullErrorHandler: [function(error, stackTrace) {
$.Zone__current.handleUncaughtError$2(error, stackTrace);
}, function(error) {
return P._nullErrorHandler(error, null);
- }, null, "call$2", "call$1", "_nullErrorHandler$closure", 2, 2, 6, 50],
+ }, null, "call$2", "call$1", "_nullErrorHandler$closure", 2, 2, 6, 0],
_nullDoneHandler: [function() {
}, "call$0", "_nullDoneHandler$closure", 0, 0, 1],
_runUserCode: function(userCode, onSuccess, onError) {
@@ -4706,7 +4761,7 @@ var dart = [
$._lastCallback = entry;
}
}
- }, "call$5", "_rootHandleUncaughtError$closure", 10, 0, 31],
+ }, "call$5", "_rootHandleUncaughtError$closure", 10, 0, 54],
_rootRun: [function($self, $parent, zone, f) {
var old, t1;
if (J.$eq($.Zone__current, zone))
@@ -4718,7 +4773,7 @@ var dart = [
} finally {
$.Zone__current = old;
}
- }, "call$4", "_rootRun$closure", 8, 0, 32],
+ }, "call$4", "_rootRun$closure", 8, 0, 55],
_rootRunUnary: [function($self, $parent, zone, f, arg) {
var old, t1;
if (J.$eq($.Zone__current, zone))
@@ -4730,7 +4785,7 @@ var dart = [
} finally {
$.Zone__current = old;
}
- }, "call$5", "_rootRunUnary$closure", 10, 0, 33],
+ }, "call$5", "_rootRunUnary$closure", 10, 0, 56],
_rootRunBinary: [function($self, $parent, zone, f, arg1, arg2) {
var old, t1;
if (J.$eq($.Zone__current, zone))
@@ -4742,37 +4797,37 @@ var dart = [
} finally {
$.Zone__current = old;
}
- }, "call$6", "_rootRunBinary$closure", 12, 0, 34],
+ }, "call$6", "_rootRunBinary$closure", 12, 0, 57],
_rootRegisterCallback: [function($self, $parent, zone, f) {
return f;
- }, "call$4", "_rootRegisterCallback$closure", 8, 0, 35],
+ }, "call$4", "_rootRegisterCallback$closure", 8, 0, 58],
_rootRegisterUnaryCallback: [function($self, $parent, zone, f) {
return f;
- }, "call$4", "_rootRegisterUnaryCallback$closure", 8, 0, 36],
+ }, "call$4", "_rootRegisterUnaryCallback$closure", 8, 0, 59],
_rootRegisterBinaryCallback: [function($self, $parent, zone, f) {
return f;
- }, "call$4", "_rootRegisterBinaryCallback$closure", 8, 0, 37],
+ }, "call$4", "_rootRegisterBinaryCallback$closure", 8, 0, 60],
_rootErrorCallback: [function($self, $parent, zone, error, stackTrace) {
return;
- }, "call$5", "_rootErrorCallback$closure", 10, 0, 38],
+ }, "call$5", "_rootErrorCallback$closure", 10, 0, 61],
_rootScheduleMicrotask: [function($self, $parent, zone, f) {
var t1 = C.C__RootZone !== zone;
if (t1)
f = zone.bindCallback$2$runGuarded(f, !(!t1 || C.C__RootZone.get$errorZone() === zone.get$errorZone()));
P._scheduleAsyncCallback(f);
- }, "call$4", "_rootScheduleMicrotask$closure", 8, 0, 39],
+ }, "call$4", "_rootScheduleMicrotask$closure", 8, 0, 62],
_rootCreateTimer: [function($self, $parent, zone, duration, callback) {
return P.Timer__createTimer(duration, C.C__RootZone !== zone ? zone.bindCallback$1(callback) : callback);
- }, "call$5", "_rootCreateTimer$closure", 10, 0, 40],
+ }, "call$5", "_rootCreateTimer$closure", 10, 0, 63],
_rootCreatePeriodicTimer: [function($self, $parent, zone, duration, callback) {
return P.Timer__createPeriodicTimer(duration, C.C__RootZone !== zone ? zone.bindUnaryCallback$1(callback) : callback);
- }, "call$5", "_rootCreatePeriodicTimer$closure", 10, 0, 41],
+ }, "call$5", "_rootCreatePeriodicTimer$closure", 10, 0, 64],
_rootPrint: [function($self, $parent, zone, line) {
H.printString(H.S(line));
- }, "call$4", "_rootPrint$closure", 8, 0, 42],
+ }, "call$4", "_rootPrint$closure", 8, 0, 65],
_printToZone: [function(line) {
J.print$1$x($.Zone__current, line);
- }, "call$1", "_printToZone$closure", 2, 0, 23],
+ }, "call$1", "_printToZone$closure", 2, 0, 38],
_rootFork: [function($self, $parent, zone, specification, zoneValues) {
var valueMap, t1;
$.printToZone = P._printToZone$closure();
@@ -4785,9 +4840,33 @@ var dart = [
else
valueMap = P.HashMap_HashMap$from(zoneValues, null, null);
t1 = new P._CustomZone(null, null, null, null, null, null, null, null, null, null, null, null, null, null, zone, valueMap);
- t1._CustomZone$3(zone, specification, valueMap);
+ specification.get$run();
+ t1._run = zone.get$_run();
+ specification.get$runUnary();
+ t1._runUnary = zone.get$_runUnary();
+ specification.get$runBinary();
+ t1._runBinary = zone.get$_runBinary();
+ specification.get$registerCallback();
+ t1._registerCallback = zone.get$_registerCallback();
+ specification.get$registerUnaryCallback();
+ t1._registerUnaryCallback = zone.get$_registerUnaryCallback();
+ specification.get$registerBinaryCallback();
+ t1._registerBinaryCallback = zone.get$_registerBinaryCallback();
+ specification.get$errorCallback();
+ t1._errorCallback = zone.get$_errorCallback();
+ specification.get$scheduleMicrotask();
+ t1._scheduleMicrotask = zone.get$_scheduleMicrotask();
+ specification.get$createTimer();
+ t1._createTimer = zone.get$_createTimer();
+ specification.get$createPeriodicTimer();
+ t1._createPeriodicTimer = zone.get$_createPeriodicTimer();
+ specification.get$print(specification);
+ t1._print = zone.get$_print();
+ specification.get$fork();
+ t1._fork = zone.get$_fork();
+ t1._handleUncaughtError = specification.get$handleUncaughtError() != null ? new P._ZoneFunction(t1, specification.get$handleUncaughtError()) : zone.get$_handleUncaughtError();
return t1;
- }, "call$5", "_rootFork$closure", 10, 0, 43],
+ }, "call$5", "_rootFork$closure", 10, 0, 66],
runZoned: function(body, onError, zoneSpecification, zoneValues) {
var errorHandler, zone;
errorHandler = new P.runZoned_closure(onError);
@@ -4796,39 +4875,39 @@ var dart = [
return zone.runGuarded$1(body);
},
_AsyncRun__initializeScheduleImmediate_internalCallback: {
- "^": "Closure:2;box_0",
+ "^": "Closure:2;_async$_box_0",
call$1: function(_) {
var t1, f;
H.leaveJsAsync();
- t1 = this.box_0;
- f = t1.storedCallback_0;
- t1.storedCallback_0 = null;
+ t1 = this._async$_box_0;
+ f = t1._captured_storedCallback_0;
+ t1._captured_storedCallback_0 = null;
f.call$0();
}
},
_AsyncRun__initializeScheduleImmediate_closure: {
- "^": "Closure:5;box_0,div_1,span_2",
+ "^": "Closure:5;_async$_box_0,_captured_div_1,_captured_span_2",
call$1: function(callback) {
var t1, t2;
++init.globalState.topEventLoop._activeJsAsyncCount;
- this.box_0.storedCallback_0 = callback;
- t1 = this.div_1;
- t2 = this.span_2;
+ this._async$_box_0._captured_storedCallback_0 = callback;
+ t1 = this._captured_div_1;
+ t2 = this._captured_span_2;
t1.firstChild ? t1.removeChild(t2) : t1.appendChild(t2);
}
},
_AsyncRun__scheduleImmediateJsOverride_internalCallback: {
- "^": "Closure:0;callback_0",
+ "^": "Closure:0;_captured_callback_0",
call$0: function() {
H.leaveJsAsync();
- this.callback_0.call$0();
+ this._captured_callback_0.call$0();
}
},
_AsyncRun__scheduleImmediateWithSetImmediate_internalCallback: {
- "^": "Closure:0;callback_0",
+ "^": "Closure:0;_captured_callback_0",
call$0: function() {
H.leaveJsAsync();
- this.callback_0.call$0();
+ this._captured_callback_0.call$0();
}
},
_UncaughtAsyncError: {
@@ -4875,7 +4954,7 @@ var dart = [
}
},
_Future: {
- "^": "Object;_state,_zone<,_resultOrListeners",
+ "^": "Object;_state?,_zone<,_resultOrListeners",
get$_hasError: function() {
return this._state === 8;
},
@@ -4894,8 +4973,7 @@ var dart = [
if (onError != null)
onError = P._registerErrorHandler(onError, t1);
}
- t1 = onError == null ? 1 : 3;
- this._addListener$1(new P._FutureListener(null, result, t1, f, onError));
+ this._addListener$1(new P._FutureListener(null, result, onError == null ? 1 : 3, f, onError));
return result;
},
then$1: function(f) {
@@ -4906,9 +4984,7 @@ var dart = [
t1 = $.Zone__current;
result = new P._Future(0, t1, null);
result.$builtinTypeInfo = this.$builtinTypeInfo;
- if (t1 !== C.C__RootZone)
- action = t1.registerCallback$1(action);
- this._addListener$1(new P._FutureListener(null, result, 8, action, null));
+ this._addListener$1(new P._FutureListener(null, result, 8, t1 !== C.C__RootZone ? t1.registerCallback$1(action) : action, null));
return result;
},
_markPendingCompletion$0: function() {
@@ -4976,7 +5052,7 @@ var dart = [
P._Future__propagateToListeners(this, listeners);
}, function(error) {
return this._completeError$2(error, null);
- }, "_completeError$1", "call$2", "call$1", "get$_completeError", 2, 2, 6, 50],
+ }, "_completeError$1", "call$2", "call$1", "get$_completeError", 2, 2, 6, 0],
_asyncComplete$1: function(value) {
var t1;
if (value == null)
@@ -5009,8 +5085,16 @@ var dart = [
t1._asyncComplete$1(value);
return t1;
}, _Future__chainForeignFuture: function(source, target) {
- target._state = 2;
- source.then$2$onError(new P._Future__chainForeignFuture_closure(target), new P._Future__chainForeignFuture_closure0(target));
+ var e, s, exception, t1;
+ target.set$_state(2);
+ try {
+ source.then$2$onError(new P._Future__chainForeignFuture_closure(target), new P._Future__chainForeignFuture_closure0(target));
+ } catch (exception) {
+ t1 = H.unwrapException(exception);
+ e = t1;
+ s = H.getTraceFromException(exception);
+ P.scheduleMicrotask(new P._Future__chainForeignFuture_closure1(target, e, s));
+ }
}, _Future__chainCoreFuture: function(source, target) {
var listener;
target._state = 2;
@@ -5022,32 +5106,32 @@ var dart = [
}, _Future__propagateToListeners: function(source, listeners) {
var t1, t2, t3, hasError, asyncError, listeners0, sourceValue, zone, oldZone, chainSource, result;
t1 = {};
- t1.source_4 = source;
+ t1._captured_source_4 = source;
for (t2 = source; true;) {
t3 = {};
hasError = t2.get$_hasError();
if (listeners == null) {
if (hasError) {
- asyncError = t1.source_4.get$_error();
- t1.source_4.get$_zone().handleUncaughtError$2(J.get$error$x(asyncError), asyncError.get$stackTrace());
+ asyncError = t1._captured_source_4.get$_error();
+ t1._captured_source_4.get$_zone().handleUncaughtError$2(J.get$error$x(asyncError), asyncError.get$stackTrace());
}
return;
}
for (; listeners.get$_nextListener() != null; listeners = listeners0) {
listeners0 = listeners._nextListener;
listeners._nextListener = null;
- P._Future__propagateToListeners(t1.source_4, listeners);
+ P._Future__propagateToListeners(t1._captured_source_4, listeners);
}
- t3.listenerHasValue_1 = true;
- sourceValue = hasError ? null : t1.source_4.get$_async$_value();
- t3.listenerValueOrError_2 = sourceValue;
- t3.isPropagationAborted_3 = false;
+ t3._captured_listenerHasValue_1 = true;
+ sourceValue = hasError ? null : t1._captured_source_4.get$_async$_value();
+ t3._captured_listenerValueOrError_2 = sourceValue;
+ t3._captured_isPropagationAborted_3 = false;
t2 = !hasError;
if (!t2 || listeners.get$handlesValue() || listeners.state === 8) {
zone = listeners.get$_zone();
- if (hasError && !t1.source_4.get$_zone().inSameErrorZone$1(zone)) {
- asyncError = t1.source_4.get$_error();
- t1.source_4.get$_zone().handleUncaughtError$2(J.get$error$x(asyncError), asyncError.get$stackTrace());
+ if (hasError && !t1._captured_source_4.get$_zone().inSameErrorZone$1(zone)) {
+ asyncError = t1._captured_source_4.get$_error();
+ t1._captured_source_4.get$_zone().handleUncaughtError$2(J.get$error$x(asyncError), asyncError.get$stackTrace());
return;
}
oldZone = $.Zone__current;
@@ -5057,27 +5141,27 @@ var dart = [
oldZone = null;
if (t2) {
if (listeners.get$handlesValue())
- t3.listenerHasValue_1 = new P._Future__propagateToListeners_handleValueCallback(t3, listeners, sourceValue, zone).call$0();
+ t3._captured_listenerHasValue_1 = new P._Future__propagateToListeners_handleValueCallback(t3, listeners, sourceValue, zone).call$0();
} else
new P._Future__propagateToListeners_handleError(t1, t3, listeners, zone).call$0();
if (listeners.get$handlesComplete())
new P._Future__propagateToListeners_handleWhenCompleteCallback(t1, t3, hasError, listeners, zone).call$0();
if (oldZone != null)
$.Zone__current = oldZone;
- if (t3.isPropagationAborted_3)
+ if (t3._captured_isPropagationAborted_3)
return;
- if (t3.listenerHasValue_1 === true) {
- t2 = t3.listenerValueOrError_2;
+ if (t3._captured_listenerHasValue_1 === true) {
+ t2 = t3._captured_listenerValueOrError_2;
t2 = (sourceValue == null ? t2 != null : sourceValue !== t2) && !!J.getInterceptor(t2).$isFuture;
} else
t2 = false;
if (t2) {
- chainSource = t3.listenerValueOrError_2;
+ chainSource = t3._captured_listenerValueOrError_2;
result = listeners.result;
if (chainSource instanceof P._Future)
if (chainSource._state >= 4) {
result._state = 2;
- t1.source_4 = chainSource;
+ t1._captured_source_4 = chainSource;
listeners = new P._FutureListener(null, result, 0, null, null);
t2 = chainSource;
continue;
@@ -5090,8 +5174,8 @@ var dart = [
}
result = listeners.result;
listeners = result._removeListeners$0();
- t2 = t3.listenerHasValue_1;
- t3 = t3.listenerValueOrError_2;
+ t2 = t3._captured_listenerHasValue_1;
+ t3 = t3._captured_listenerValueOrError_2;
if (t2 === true) {
result._state = 4;
result._resultOrListeners = t3;
@@ -5099,77 +5183,83 @@ var dart = [
result._state = 8;
result._resultOrListeners = t3;
}
- t1.source_4 = result;
+ t1._captured_source_4 = result;
t2 = result;
}
}}
},
_Future__addListener_closure: {
- "^": "Closure:0;this_0,listener_1",
+ "^": "Closure:0;_async$_captured_this_0,_captured_listener_1",
call$0: function() {
- P._Future__propagateToListeners(this.this_0, this.listener_1);
+ P._Future__propagateToListeners(this._async$_captured_this_0, this._captured_listener_1);
}
},
_Future__chainForeignFuture_closure: {
- "^": "Closure:2;target_0",
+ "^": "Closure:2;_captured_target_0",
call$1: function(value) {
- this.target_0._completeWithValue$1(value);
+ this._captured_target_0._completeWithValue$1(value);
}
},
_Future__chainForeignFuture_closure0: {
- "^": "Closure:7;target_1",
+ "^": "Closure:7;_captured_target_1",
call$2: function(error, stackTrace) {
- this.target_1._completeError$2(error, stackTrace);
+ this._captured_target_1._completeError$2(error, stackTrace);
},
call$1: function(error) {
return this.call$2(error, null);
}
},
+ _Future__chainForeignFuture_closure1: {
+ "^": "Closure:0;_captured_target_2,_captured_e_3,_captured_s_4",
+ call$0: function() {
+ this._captured_target_2._completeError$2(this._captured_e_3, this._captured_s_4);
+ }
+ },
_Future__asyncComplete_closure: {
- "^": "Closure:0;this_0,coreFuture_1",
+ "^": "Closure:0;_async$_captured_this_0,_captured_coreFuture_1",
call$0: function() {
- P._Future__chainCoreFuture(this.coreFuture_1, this.this_0);
+ P._Future__chainCoreFuture(this._captured_coreFuture_1, this._async$_captured_this_0);
}
},
_Future__asyncComplete_closure0: {
- "^": "Closure:0;this_2,value_3",
+ "^": "Closure:0;_async$_captured_this_2,_captured_value_3",
call$0: function() {
- this.this_2._completeWithValue$1(this.value_3);
+ this._async$_captured_this_2._completeWithValue$1(this._captured_value_3);
}
},
_Future__asyncCompleteError_closure: {
- "^": "Closure:0;this_0,error_1,stackTrace_2",
+ "^": "Closure:0;_async$_captured_this_0,_captured_error_1,_captured_stackTrace_2",
call$0: function() {
- this.this_0._completeError$2(this.error_1, this.stackTrace_2);
+ this._async$_captured_this_0._completeError$2(this._captured_error_1, this._captured_stackTrace_2);
}
},
_Future__propagateToListeners_handleValueCallback: {
- "^": "Closure:8;box_1,listener_3,sourceValue_4,zone_5",
+ "^": "Closure:8;_box_1,_captured_listener_3,_captured_sourceValue_4,_captured_zone_5",
call$0: function() {
var e, s, exception, t1;
try {
- this.box_1.listenerValueOrError_2 = this.zone_5.runUnary$2(this.listener_3.get$_onValue(), this.sourceValue_4);
+ this._box_1._captured_listenerValueOrError_2 = this._captured_zone_5.runUnary$2(this._captured_listener_3.get$_onValue(), this._captured_sourceValue_4);
return true;
} catch (exception) {
t1 = H.unwrapException(exception);
e = t1;
s = H.getTraceFromException(exception);
- this.box_1.listenerValueOrError_2 = new P.AsyncError(e, s);
+ this._box_1._captured_listenerValueOrError_2 = new P.AsyncError(e, s);
return false;
}
}
},
_Future__propagateToListeners_handleError: {
- "^": "Closure:1;box_2,box_1,listener_6,zone_7",
+ "^": "Closure:1;_box_2,_box_1,_captured_listener_6,_captured_zone_7",
call$0: function() {
var asyncError, matchesTest, test, e, s, errorCallback, e0, s0, t1, exception, t2, listenerValueOrError, t3, t4;
- asyncError = this.box_2.source_4.get$_error();
+ asyncError = this._box_2._captured_source_4.get$_error();
matchesTest = true;
- t1 = this.listener_6;
+ t1 = this._captured_listener_6;
if (t1.get$hasErrorTest()) {
test = t1.callback;
try {
- matchesTest = this.zone_7.runUnary$2(test, J.get$error$x(asyncError));
+ matchesTest = this._captured_zone_7.runUnary$2(test, J.get$error$x(asyncError));
} catch (exception) {
t1 = H.unwrapException(exception);
e = t1;
@@ -5177,9 +5267,9 @@ var dart = [
t1 = J.get$error$x(asyncError);
t2 = e;
listenerValueOrError = (t1 == null ? t2 == null : t1 === t2) ? asyncError : new P.AsyncError(e, s);
- t1 = this.box_1;
- t1.listenerValueOrError_2 = listenerValueOrError;
- t1.listenerHasValue_1 = false;
+ t1 = this._box_1;
+ t1._captured_listenerValueOrError_2 = listenerValueOrError;
+ t1._captured_listenerHasValue_1 = false;
return;
}
}
@@ -5189,12 +5279,12 @@ var dart = [
t1 = errorCallback;
t2 = H.getDynamicRuntimeType();
t2 = H.buildFunctionType(t2, [t2, t2])._isTest$1(t1);
- t3 = this.zone_7;
- t4 = this.box_1;
+ t3 = this._captured_zone_7;
+ t4 = this._box_1;
if (t2)
- t4.listenerValueOrError_2 = t3.runBinary$3(errorCallback, J.get$error$x(asyncError), asyncError.get$stackTrace());
+ t4._captured_listenerValueOrError_2 = t3.runBinary$3(errorCallback, J.get$error$x(asyncError), asyncError.get$stackTrace());
else
- t4.listenerValueOrError_2 = t3.runUnary$2(errorCallback, J.get$error$x(asyncError));
+ t4._captured_listenerValueOrError_2 = t3.runUnary$2(errorCallback, J.get$error$x(asyncError));
} catch (exception) {
t1 = H.unwrapException(exception);
e0 = t1;
@@ -5202,74 +5292,74 @@ var dart = [
t1 = J.get$error$x(asyncError);
t2 = e0;
listenerValueOrError = (t1 == null ? t2 == null : t1 === t2) ? asyncError : new P.AsyncError(e0, s0);
- t1 = this.box_1;
- t1.listenerValueOrError_2 = listenerValueOrError;
- t1.listenerHasValue_1 = false;
+ t1 = this._box_1;
+ t1._captured_listenerValueOrError_2 = listenerValueOrError;
+ t1._captured_listenerHasValue_1 = false;
return;
}
- this.box_1.listenerHasValue_1 = true;
+ this._box_1._captured_listenerHasValue_1 = true;
} else {
- t1 = this.box_1;
- t1.listenerValueOrError_2 = asyncError;
- t1.listenerHasValue_1 = false;
+ t1 = this._box_1;
+ t1._captured_listenerValueOrError_2 = asyncError;
+ t1._captured_listenerHasValue_1 = false;
}
}
},
_Future__propagateToListeners_handleWhenCompleteCallback: {
- "^": "Closure:1;box_2,box_1,hasError_8,listener_9,zone_10",
+ "^": "Closure:1;_box_2,_box_1,_captured_hasError_8,_captured_listener_9,_captured_zone_10",
call$0: function() {
var t1, e, s, completeResult, t2, exception, result;
t1 = {};
- t1.completeResult_0 = null;
+ t1._captured_completeResult_0 = null;
try {
- completeResult = this.zone_10.run$1(this.listener_9.get$_whenCompleteAction());
- t1.completeResult_0 = completeResult;
+ completeResult = this._captured_zone_10.run$1(this._captured_listener_9.get$_whenCompleteAction());
+ t1._captured_completeResult_0 = completeResult;
t2 = completeResult;
} catch (exception) {
t1 = H.unwrapException(exception);
e = t1;
s = H.getTraceFromException(exception);
- if (this.hasError_8) {
- t1 = J.get$error$x(this.box_2.source_4.get$_error());
+ if (this._captured_hasError_8) {
+ t1 = J.get$error$x(this._box_2._captured_source_4.get$_error());
t2 = e;
t2 = t1 == null ? t2 == null : t1 === t2;
t1 = t2;
} else
t1 = false;
- t2 = this.box_1;
+ t2 = this._box_1;
if (t1)
- t2.listenerValueOrError_2 = this.box_2.source_4.get$_error();
+ t2._captured_listenerValueOrError_2 = this._box_2._captured_source_4.get$_error();
else
- t2.listenerValueOrError_2 = new P.AsyncError(e, s);
- t2.listenerHasValue_1 = false;
+ t2._captured_listenerValueOrError_2 = new P.AsyncError(e, s);
+ t2._captured_listenerHasValue_1 = false;
return;
}
if (!!J.getInterceptor(t2).$isFuture) {
- t2 = this.listener_9;
+ t2 = this._captured_listener_9;
result = t2.get$result(t2);
result.set$_isChained(true);
- this.box_1.isPropagationAborted_3 = true;
- t1.completeResult_0.then$2$onError(new P._Future__propagateToListeners_handleWhenCompleteCallback_closure(this.box_2, result), new P._Future__propagateToListeners_handleWhenCompleteCallback_closure0(t1, result));
+ this._box_1._captured_isPropagationAborted_3 = true;
+ t1._captured_completeResult_0.then$2$onError(new P._Future__propagateToListeners_handleWhenCompleteCallback_closure(this._box_2, result), new P._Future__propagateToListeners_handleWhenCompleteCallback_closure0(t1, result));
}
}
},
_Future__propagateToListeners_handleWhenCompleteCallback_closure: {
- "^": "Closure:2;box_2,result_11",
+ "^": "Closure:2;_box_2,_captured_result_11",
call$1: function(ignored) {
- P._Future__propagateToListeners(this.box_2.source_4, new P._FutureListener(null, this.result_11, 0, null, null));
+ P._Future__propagateToListeners(this._box_2._captured_source_4, new P._FutureListener(null, this._captured_result_11, 0, null, null));
}
},
_Future__propagateToListeners_handleWhenCompleteCallback_closure0: {
- "^": "Closure:7;box_0,result_12",
+ "^": "Closure:7;_async$_box_0,_captured_result_12",
call$2: function(error, stackTrace) {
var t1, completeResult;
- t1 = this.box_0;
- if (!(t1.completeResult_0 instanceof P._Future)) {
+ t1 = this._async$_box_0;
+ if (!(t1._captured_completeResult_0 instanceof P._Future)) {
completeResult = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [null]);
- t1.completeResult_0 = completeResult;
+ t1._captured_completeResult_0 = completeResult;
completeResult._setError$2(error, stackTrace);
}
- P._Future__propagateToListeners(t1.completeResult_0, new P._FutureListener(null, this.result_12, 0, null, null));
+ P._Future__propagateToListeners(t1._captured_completeResult_0, new P._FutureListener(null, this._captured_result_12, 0, null, null));
},
call$1: function(error) {
return this.call$2(error, null);
@@ -5293,23 +5383,23 @@ var dart = [
var t1, future;
t1 = {};
future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [P.bool]);
- t1.subscription_0 = null;
- t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_contains_closure(t1, this, needle, future), true, new P.Stream_contains_closure0(future), future.get$_completeError());
+ t1._captured_subscription_0 = null;
+ t1._captured_subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_contains_closure(t1, this, needle, future), true, new P.Stream_contains_closure0(future), future.get$_completeError());
return future;
},
forEach$1: function(_, action) {
var t1, future;
t1 = {};
future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [null]);
- t1.subscription_0 = null;
- t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_forEach_closure(t1, this, action, future), true, new P.Stream_forEach_closure0(future), future.get$_completeError());
+ t1._captured_subscription_0 = null;
+ t1._captured_subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_forEach_closure(t1, this, action, future), true, new P.Stream_forEach_closure0(future), future.get$_completeError());
return future;
},
get$length: function(_) {
var t1, future;
t1 = {};
future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [P.$int]);
- t1.count_0 = 0;
+ t1._captured_count_0 = 0;
this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t1), true, new P.Stream_length_closure0(t1, future), future.get$_completeError());
return future;
},
@@ -5317,8 +5407,8 @@ var dart = [
var t1, future;
t1 = {};
future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [P.bool]);
- t1.subscription_0 = null;
- t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_isEmpty_closure(t1, future), true, new P.Stream_isEmpty_closure0(future), future.get$_completeError());
+ t1._captured_subscription_0 = null;
+ t1._captured_subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_isEmpty_closure(t1, future), true, new P.Stream_isEmpty_closure0(future), future.get$_completeError());
return future;
},
toList$0: function(_) {
@@ -5332,74 +5422,74 @@ var dart = [
var t1, future;
t1 = {};
future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [H.getRuntimeTypeArgument(this, "Stream", 0)]);
- t1.subscription_0 = null;
- t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_first_closure(t1, this, future), true, new P.Stream_first_closure0(future), future.get$_completeError());
+ t1._captured_subscription_0 = null;
+ t1._captured_subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_first_closure(t1, this, future), true, new P.Stream_first_closure0(future), future.get$_completeError());
return future;
},
get$last: function(_) {
var t1, future;
t1 = {};
future = H.setRuntimeTypeInfo(new P._Future(0, $.Zone__current, null), [H.getRuntimeTypeArgument(this, "Stream", 0)]);
- t1.result_0 = null;
- t1.foundResult_1 = false;
+ t1._captured_result_0 = null;
+ t1._captured_foundResult_1 = false;
this.listen$4$cancelOnError$onDone$onError(new P.Stream_last_closure(t1, this), true, new P.Stream_last_closure0(t1, future), future.get$_completeError());
return future;
}
},
Stream_pipe_closure: {
- "^": "Closure:2;streamConsumer_0",
+ "^": "Closure:2;_captured_streamConsumer_0",
call$1: function(_) {
- return this.streamConsumer_0._async$_target.close$0(0);
+ return this._captured_streamConsumer_0._async$_target.close$0(0);
}
},
Stream_contains_closure: {
- "^": "Closure;box_0,this_1,needle_2,future_3",
+ "^": "Closure;_async$_box_0,_async$_captured_this_1,_captured_needle_2,_captured_future_3",
call$1: function(element) {
var t1, t2;
- t1 = this.box_0;
- t2 = this.future_3;
- P._runUserCode(new P.Stream_contains__closure(this.needle_2, element), new P.Stream_contains__closure0(t1, t2), P._cancelAndErrorClosure(t1.subscription_0, t2));
+ t1 = this._async$_box_0;
+ t2 = this._captured_future_3;
+ P._runUserCode(new P.Stream_contains__closure(this._captured_needle_2, element), new P.Stream_contains__closure0(t1, t2), P._cancelAndErrorClosure(t1._captured_subscription_0, t2));
},
$signature: function() {
return H.computeSignature(function(T) {
- return {func: "dynamic__T", args: [T]};
- }, this.this_1, "Stream");
+ return {func: "", args: [T]};
+ }, this._async$_captured_this_1, "Stream");
}
},
Stream_contains__closure: {
- "^": "Closure:0;needle_4,element_5",
+ "^": "Closure:0;_captured_needle_4,_captured_element_5",
call$0: function() {
- return J.$eq(this.element_5, this.needle_4);
+ return J.$eq(this._captured_element_5, this._captured_needle_4);
}
},
Stream_contains__closure0: {
- "^": "Closure:9;box_0,future_6",
+ "^": "Closure:9;_async$_box_0,_captured_future_6",
call$1: function(isMatch) {
if (isMatch === true)
- P._cancelAndValue(this.box_0.subscription_0, this.future_6, true);
+ P._cancelAndValue(this._async$_box_0._captured_subscription_0, this._captured_future_6, true);
}
},
Stream_contains_closure0: {
- "^": "Closure:0;future_7",
+ "^": "Closure:0;_captured_future_7",
call$0: function() {
- this.future_7._complete$1(false);
+ this._captured_future_7._complete$1(false);
}
},
Stream_forEach_closure: {
- "^": "Closure;box_0,this_1,action_2,future_3",
+ "^": "Closure;_async$_box_0,_async$_captured_this_1,_captured_action_2,_captured_future_3",
call$1: function(element) {
- P._runUserCode(new P.Stream_forEach__closure(this.action_2, element), new P.Stream_forEach__closure0(), P._cancelAndErrorClosure(this.box_0.subscription_0, this.future_3));
+ P._runUserCode(new P.Stream_forEach__closure(this._captured_action_2, element), new P.Stream_forEach__closure0(), P._cancelAndErrorClosure(this._async$_box_0._captured_subscription_0, this._captured_future_3));
},
$signature: function() {
return H.computeSignature(function(T) {
- return {func: "dynamic__T", args: [T]};
- }, this.this_1, "Stream");
+ return {func: "", args: [T]};
+ }, this._async$_captured_this_1, "Stream");
}
},
Stream_forEach__closure: {
- "^": "Closure:0;action_4,element_5",
+ "^": "Closure:0;_captured_action_4,_captured_element_5",
call$0: function() {
- return this.action_4.call$1(this.element_5);
+ return this._captured_action_4.call$1(this._captured_element_5);
}
},
Stream_forEach__closure0: {
@@ -5408,65 +5498,65 @@ var dart = [
}
},
Stream_forEach_closure0: {
- "^": "Closure:0;future_6",
+ "^": "Closure:0;_captured_future_6",
call$0: function() {
- this.future_6._complete$1(null);
+ this._captured_future_6._complete$1(null);
}
},
Stream_length_closure: {
- "^": "Closure:2;box_0",
+ "^": "Closure:2;_async$_box_0",
call$1: function(_) {
- ++this.box_0.count_0;
+ ++this._async$_box_0._captured_count_0;
}
},
Stream_length_closure0: {
- "^": "Closure:0;box_0,future_1",
+ "^": "Closure:0;_async$_box_0,_captured_future_1",
call$0: function() {
- this.future_1._complete$1(this.box_0.count_0);
+ this._captured_future_1._complete$1(this._async$_box_0._captured_count_0);
}
},
Stream_isEmpty_closure: {
- "^": "Closure:2;box_0,future_1",
+ "^": "Closure:2;_async$_box_0,_captured_future_1",
call$1: function(_) {
- P._cancelAndValue(this.box_0.subscription_0, this.future_1, false);
+ P._cancelAndValue(this._async$_box_0._captured_subscription_0, this._captured_future_1, false);
}
},
Stream_isEmpty_closure0: {
- "^": "Closure:0;future_2",
+ "^": "Closure:0;_captured_future_2",
call$0: function() {
- this.future_2._complete$1(true);
+ this._captured_future_2._complete$1(true);
}
},
Stream_toList_closure: {
- "^": "Closure;this_0,result_1",
+ "^": "Closure;_async$_captured_this_0,_async$_captured_result_1",
call$1: function(data) {
- this.result_1.push(data);
+ this._async$_captured_result_1.push(data);
},
$signature: function() {
return H.computeSignature(function(T) {
- return {func: "dynamic__T", args: [T]};
- }, this.this_0, "Stream");
+ return {func: "", args: [T]};
+ }, this._async$_captured_this_0, "Stream");
}
},
Stream_toList_closure0: {
- "^": "Closure:0;result_2,future_3",
+ "^": "Closure:0;_captured_result_2,_captured_future_3",
call$0: function() {
- this.future_3._complete$1(this.result_2);
+ this._captured_future_3._complete$1(this._captured_result_2);
}
},
Stream_first_closure: {
- "^": "Closure;box_0,this_1,future_2",
+ "^": "Closure;_async$_box_0,_async$_captured_this_1,_captured_future_2",
call$1: function(value) {
- P._cancelAndValue(this.box_0.subscription_0, this.future_2, value);
+ P._cancelAndValue(this._async$_box_0._captured_subscription_0, this._captured_future_2, value);
},
$signature: function() {
return H.computeSignature(function(T) {
- return {func: "dynamic__T", args: [T]};
- }, this.this_1, "Stream");
+ return {func: "", args: [T]};
+ }, this._async$_captured_this_1, "Stream");
}
},
Stream_first_closure0: {
- "^": "Closure:0;future_3",
+ "^": "Closure:0;_captured_future_3",
call$0: function() {
var e, s, t1, exception;
try {
@@ -5476,30 +5566,30 @@ var dart = [
t1 = H.unwrapException(exception);
e = t1;
s = H.getTraceFromException(exception);
- P._completeWithErrorCallback(this.future_3, e, s);
+ P._completeWithErrorCallback(this._captured_future_3, e, s);
}
}
},
Stream_last_closure: {
- "^": "Closure;box_0,this_1",
+ "^": "Closure;_async$_box_0,_async$_captured_this_1",
call$1: function(value) {
- var t1 = this.box_0;
- t1.foundResult_1 = true;
- t1.result_0 = value;
+ var t1 = this._async$_box_0;
+ t1._captured_foundResult_1 = true;
+ t1._captured_result_0 = value;
},
$signature: function() {
return H.computeSignature(function(T) {
- return {func: "dynamic__T", args: [T]};
- }, this.this_1, "Stream");
+ return {func: "", args: [T]};
+ }, this._async$_captured_this_1, "Stream");
}
},
Stream_last_closure0: {
- "^": "Closure:0;box_0,future_2",
+ "^": "Closure:0;_async$_box_0,_captured_future_2",
call$0: function() {
var e, s, t1, exception;
- t1 = this.box_0;
- if (t1.foundResult_1) {
- this.future_2._complete$1(t1.result_0);
+ t1 = this._async$_box_0;
+ if (t1._captured_foundResult_1) {
+ this._captured_future_2._complete$1(t1._captured_result_0);
return;
}
try {
@@ -5509,7 +5599,7 @@ var dart = [
t1 = H.unwrapException(exception);
e = t1;
s = H.getTraceFromException(exception);
- P._completeWithErrorCallback(this.future_2, e, s);
+ P._completeWithErrorCallback(this._captured_future_2, e, s);
}
}
},
@@ -5520,7 +5610,7 @@ var dart = [
"^": "Object;"
},
_StreamController: {
- "^": "Object;",
+ "^": "Object;_state?",
get$_pendingEvents: function() {
if ((this._state & 8) === 0)
return this._varData;
@@ -5600,7 +5690,7 @@ var dart = [
this._addError$2(error, stackTrace);
}, function(error) {
return this.addError$2(error, null);
- }, "addError$1", "call$2", "call$1", "get$addError", 2, 2, 10, 50],
+ }, "addError$1", "call$2", "call$1", "get$addError", 2, 2, 10, 0],
close$0: function(_) {
var t1 = this._state;
if ((t1 & 4) !== 0)
@@ -5623,7 +5713,7 @@ var dart = [
this._ensurePendingEvents$0().add$1(0, new P._DelayedData(value, null));
}, "call$1", "get$_async$_add", 2, 0, function() {
return H.computeSignature(function(T) {
- return {func: "void__T", void: true, args: [T]};
+ return {func: "", void: true, args: [T]};
}, this.$receiver, "_StreamController");
}],
_addError$2: [function(error, stackTrace) {
@@ -5640,16 +5730,15 @@ var dart = [
addState.addStreamFuture._asyncComplete$1(null);
}, "call$0", "get$_close", 0, 0, 1],
_subscribe$4: function(onData, onError, onDone, cancelOnError) {
- var t1, t2, subscription, pendingEvents, addState;
+ var t1, subscription, pendingEvents, addState;
if ((this._state & 3) !== 0)
throw H.wrapException(P.StateError$("Stream has already been listened to."));
t1 = $.Zone__current;
- t2 = cancelOnError ? 1 : 0;
- subscription = H.setRuntimeTypeInfo(new P._ControllerSubscription(this, null, null, null, t1, t2, null, null), [null]);
+ subscription = H.setRuntimeTypeInfo(new P._ControllerSubscription(this, null, null, null, t1, cancelOnError ? 1 : 0, null, null), [null]);
subscription._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError, null);
pendingEvents = this.get$_pendingEvents();
- t2 = this._state |= 1;
- if ((t2 & 8) !== 0) {
+ t1 = this._state |= 1;
+ if ((t1 & 8) !== 0) {
addState = this._varData;
addState.set$varData(subscription);
addState.addSubscription.resume$0();
@@ -5689,15 +5778,15 @@ var dart = [
}
},
_StreamController__subscribe_closure: {
- "^": "Closure:0;this_0",
+ "^": "Closure:0;_async$_captured_this_0",
call$0: function() {
- P._runGuarded(this.this_0.get$_onListen());
+ P._runGuarded(this._async$_captured_this_0.get$_onListen());
}
},
_StreamController__recordCancel_complete: {
- "^": "Closure:1;this_0",
+ "^": "Closure:1;_async$_captured_this_0",
call$0: function() {
- var t1 = this.this_0._doneFuture;
+ var t1 = this._async$_captured_this_0._doneFuture;
if (t1 != null && t1._state === 0)
t1._asyncComplete$1(null);
}
@@ -5842,17 +5931,17 @@ var dart = [
}
},
_AddStreamState_makeErrorHandler_closure: {
- "^": "Closure:12;controller_0",
+ "^": "Closure:12;_captured_controller_0",
call$2: function(e, s) {
- var t1 = this.controller_0;
+ var t1 = this._captured_controller_0;
t1._addError$2(e, s);
t1._close$0();
}
},
_AddStreamState_cancel_closure: {
- "^": "Closure:0;this_0",
+ "^": "Closure:0;_async$_captured_this_0",
call$0: function() {
- this.this_0.addStreamFuture._asyncComplete$1(null);
+ this._async$_captured_this_0.addStreamFuture._asyncComplete$1(null);
}
},
_StreamControllerAddStreamState: {
@@ -5862,7 +5951,7 @@ var dart = [
"^": "Object;"
},
_BufferingStreamSubscription: {
- "^": "Object;_onData,_onError,_onDone,_zone<,_state,_cancelFuture,_pending",
+ "^": "Object;_onData,_onError,_onDone,_zone<,_state?,_cancelFuture,_pending",
_setPendingEvents$1: function(pendingEvents) {
if (pendingEvents == null)
return;
@@ -6071,19 +6160,17 @@ var dart = [
this._onDone = t1.registerCallback$1(onDone == null ? P._nullDoneHandler$closure() : onDone);
},
static: {_BufferingStreamSubscription$: function(onData, onError, onDone, cancelOnError, $T) {
- var t1, t2;
- t1 = $.Zone__current;
- t2 = cancelOnError ? 1 : 0;
- t2 = H.setRuntimeTypeInfo(new P._BufferingStreamSubscription(null, null, null, t1, t2, null, null), [$T]);
- t2._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError, $T);
- return t2;
+ var t1 = $.Zone__current;
+ t1 = H.setRuntimeTypeInfo(new P._BufferingStreamSubscription(null, null, null, t1, cancelOnError ? 1 : 0, null, null), [$T]);
+ t1._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError, $T);
+ return t1;
}}
},
_BufferingStreamSubscription__sendError_sendError: {
- "^": "Closure:1;this_0,error_1,stackTrace_2",
+ "^": "Closure:1;_async$_captured_this_0,_captured_error_1,_captured_stackTrace_2",
call$0: function() {
var t1, t2, t3, t4, t5, t6;
- t1 = this.this_0;
+ t1 = this._async$_captured_this_0;
t2 = t1._state;
if ((t2 & 8) !== 0 && (t2 & 16) === 0)
return;
@@ -6092,20 +6179,20 @@ var dart = [
t3 = H.getDynamicRuntimeType();
t3 = H.buildFunctionType(t3, [t3, t3])._isTest$1(t2);
t4 = t1._zone;
- t5 = this.error_1;
+ t5 = this._captured_error_1;
t6 = t1._onError;
if (t3)
- t4.runBinaryGuarded$3(t6, t5, this.stackTrace_2);
+ t4.runBinaryGuarded$3(t6, t5, this._captured_stackTrace_2);
else
t4.runUnaryGuarded$2(t6, t5);
t1._state = (t1._state & 4294967263) >>> 0;
}
},
_BufferingStreamSubscription__sendDone_sendDone: {
- "^": "Closure:1;this_0",
+ "^": "Closure:1;_async$_captured_this_0",
call$0: function() {
var t1, t2;
- t1 = this.this_0;
+ t1 = this._async$_captured_this_0;
t2 = t1._state;
if ((t2 & 16) === 0)
return;
@@ -6163,7 +6250,7 @@ var dart = [
}
},
_PendingEvents: {
- "^": "Object;",
+ "^": "Object;_state?",
schedule$1: function(dispatch) {
var t1 = this._state;
if (t1 === 1)
@@ -6181,15 +6268,15 @@ var dart = [
}
},
_PendingEvents_schedule_closure: {
- "^": "Closure:0;this_0,dispatch_1",
+ "^": "Closure:0;_async$_captured_this_0,_captured_dispatch_1",
call$0: function() {
var t1, oldState;
- t1 = this.this_0;
+ t1 = this._async$_captured_this_0;
oldState = t1._state;
t1._state = 0;
if (oldState === 3)
return;
- t1.handleNext$1(this.dispatch_1);
+ t1.handleNext$1(this._captured_dispatch_1);
}
},
_StreamImplEvents: {
@@ -6218,21 +6305,21 @@ var dart = [
}
},
_cancelAndError_closure: {
- "^": "Closure:0;future_0,error_1,stackTrace_2",
+ "^": "Closure:0;_captured_future_0,_captured_error_1,_captured_stackTrace_2",
call$0: function() {
- return this.future_0._completeError$2(this.error_1, this.stackTrace_2);
+ return this._captured_future_0._completeError$2(this._captured_error_1, this._captured_stackTrace_2);
}
},
_cancelAndErrorClosure_closure: {
- "^": "Closure:12;subscription_0,future_1",
+ "^": "Closure:12;_captured_subscription_0,_captured_future_1",
call$2: function(error, stackTrace) {
- return P._cancelAndError(this.subscription_0, this.future_1, error, stackTrace);
+ return P._cancelAndError(this._captured_subscription_0, this._captured_future_1, error, stackTrace);
}
},
_cancelAndValue_closure: {
- "^": "Closure:0;future_0,value_1",
+ "^": "Closure:0;_captured_future_0,_captured_value_1",
call$0: function() {
- return this.future_0._complete$1(this.value_1);
+ return this._captured_future_0._complete$1(this._captured_value_1);
}
},
_ForwardingStream: {
@@ -6289,7 +6376,7 @@ var dart = [
this._stream._handleData$2(data, this);
}, "call$1", "get$_handleData", 2, 0, function() {
return H.computeSignature(function(S, T) {
- return {func: "void__S", void: true, args: [S]};
+ return {func: "", void: true, args: [S]};
}, this.$receiver, "_ForwardingStreamSubscription");
}],
_handleError$2: [function(error, stackTrace) {
@@ -6308,13 +6395,11 @@ var dart = [
return [$T];
},
static: {_ForwardingStreamSubscription$: function(_stream, onData, onError, onDone, cancelOnError, $S, $T) {
- var t1, t2;
- t1 = $.Zone__current;
- t2 = cancelOnError ? 1 : 0;
- t2 = H.setRuntimeTypeInfo(new P._ForwardingStreamSubscription(_stream, null, null, null, null, t1, t2, null, null), [$S, $T]);
- t2._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError, $T);
- t2._ForwardingStreamSubscription$5(_stream, onData, onError, onDone, cancelOnError, $S, $T);
- return t2;
+ var t1 = $.Zone__current;
+ t1 = H.setRuntimeTypeInfo(new P._ForwardingStreamSubscription(_stream, null, null, null, null, t1, cancelOnError ? 1 : 0, null, null), [$S, $T]);
+ t1._BufferingStreamSubscription$4(onData, onError, onDone, cancelOnError, $T);
+ t1._ForwardingStreamSubscription$5(_stream, onData, onError, onDone, cancelOnError, $S, $T);
+ return t1;
}}
},
_MapStream: {
@@ -6354,7 +6439,7 @@ var dart = [
"^": "Object;"
},
_ZoneSpecification: {
- "^": "Object;handleUncaughtError,run,runUnary,runBinary,registerCallback,registerUnaryCallback,registerBinaryCallback,errorCallback,scheduleMicrotask,createTimer,createPeriodicTimer,print,fork",
+ "^": "Object;handleUncaughtError<,run<,runUnary<,runBinary<,registerCallback<,registerUnaryCallback<,registerBinaryCallback<,errorCallback<,scheduleMicrotask<,createTimer<,createPeriodicTimer<,print>,fork<",
handleUncaughtError$2: function(arg0, arg1) {
return this.handleUncaughtError.call$2(arg0, arg1);
},
@@ -6403,12 +6488,86 @@ var dart = [
},
_ZoneDelegate: {
"^": "Object;_delegationTarget",
- handleUncaughtError$3: function(zone, error, stackTrace) {
+ handleUncaughtError$3: [function(zone, error, stackTrace) {
var implementation, implZone;
implementation = this._delegationTarget.get$_handleUncaughtError();
implZone = implementation.zone;
return implementation.$function.call$5(implZone, P._parentDelegate(implZone), zone, error, stackTrace);
- }
+ }, "call$3", "get$handleUncaughtError", 6, 0, 14],
+ run$2: [function(zone, f) {
+ var implementation, implZone;
+ implementation = this._delegationTarget.get$_run();
+ implZone = implementation.zone;
+ return implementation.$function.call$4(implZone, P._parentDelegate(implZone), zone, f);
+ }, "call$2", "get$run", 4, 0, 15],
+ runUnary$3: [function(zone, f, arg) {
+ var implementation, implZone;
+ implementation = this._delegationTarget.get$_runUnary();
+ implZone = implementation.zone;
+ return implementation.$function.call$5(implZone, P._parentDelegate(implZone), zone, f, arg);
+ }, "call$3", "get$runUnary", 6, 0, 16],
+ runBinary$4: [function(zone, f, arg1, arg2) {
+ var implementation, implZone;
+ implementation = this._delegationTarget.get$_runBinary();
+ implZone = implementation.zone;
+ return implementation.$function.call$6(implZone, P._parentDelegate(implZone), zone, f, arg1, arg2);
+ }, "call$4", "get$runBinary", 8, 0, 17],
+ registerCallback$2: [function(zone, f) {
+ var implementation, implZone;
+ implementation = this._delegationTarget.get$_registerCallback();
+ implZone = implementation.zone;
+ return implementation.$function.call$4(implZone, P._parentDelegate(implZone), zone, f);
+ }, "call$2", "get$registerCallback", 4, 0, 18],
+ registerUnaryCallback$2: [function(zone, f) {
+ var implementation, implZone;
+ implementation = this._delegationTarget.get$_registerUnaryCallback();
+ implZone = implementation.zone;
+ return implementation.$function.call$4(implZone, P._parentDelegate(implZone), zone, f);
+ }, "call$2", "get$registerUnaryCallback", 4, 0, 19],
+ registerBinaryCallback$2: [function(zone, f) {
+ var implementation, implZone;
+ implementation = this._delegationTarget.get$_registerBinaryCallback();
+ implZone = implementation.zone;
+ return implementation.$function.call$4(implZone, P._parentDelegate(implZone), zone, f);
+ }, "call$2", "get$registerBinaryCallback", 4, 0, 20],
+ errorCallback$3: [function(zone, error, stackTrace) {
+ var implementation, implZone;
+ implementation = this._delegationTarget.get$_errorCallback();
+ implZone = implementation.zone;
+ if (implZone === C.C__RootZone)
+ return;
+ return implementation.$function.call$5(implZone, P._parentDelegate(implZone), zone, error, stackTrace);
+ }, "call$3", "get$errorCallback", 6, 0, 21],
+ scheduleMicrotask$2: [function(zone, f) {
+ var implementation, implZone;
+ implementation = this._delegationTarget.get$_scheduleMicrotask();
+ implZone = implementation.zone;
+ implementation.$function.call$4(implZone, P._parentDelegate(implZone), zone, f);
+ }, "call$2", "get$scheduleMicrotask", 4, 0, 22],
+ createTimer$3: [function(zone, duration, f) {
+ var implementation, implZone;
+ implementation = this._delegationTarget.get$_createTimer();
+ implZone = implementation.zone;
+ return implementation.$function.call$5(implZone, P._parentDelegate(implZone), zone, duration, f);
+ }, "call$3", "get$createTimer", 6, 0, 23],
+ createPeriodicTimer$3: [function(zone, period, f) {
+ var implementation, implZone;
+ implementation = this._delegationTarget.get$_createPeriodicTimer();
+ implZone = implementation.zone;
+ return implementation.$function.call$5(implZone, P._parentDelegate(implZone), zone, period, f);
+ }, "call$3", "get$createPeriodicTimer", 6, 0, 24],
+ print$2: [function(_, zone, line) {
+ var implementation, implZone;
+ implementation = this._delegationTarget.get$_print();
+ implZone = implementation.zone;
+ implementation.$function.call$4(implZone, P._parentDelegate(implZone), zone, line);
+ }, "call$2", "get$print", 4, 0, 25],
+ fork$3: [function(zone, specification, zoneValues) {
+ var implementation, implZone;
+ implementation = this._delegationTarget.get$_fork();
+ implZone = implementation.zone;
+ return implementation.$function.call$5(implZone, P._parentDelegate(implZone), zone, specification, zoneValues);
+ }, "call$3", "get$fork", 6, 0, 26]
},
_Zone: {
"^": "Object;",
@@ -6500,63 +6659,65 @@ var dart = [
}
return;
},
- handleUncaughtError$2: function(error, stackTrace) {
+ handleUncaughtError$2: [function(error, stackTrace) {
var implementation, t1, parentDelegate;
implementation = this._handleUncaughtError;
t1 = implementation.zone;
parentDelegate = P._parentDelegate(t1);
return implementation.$function.call$5(t1, parentDelegate, this, error, stackTrace);
- },
- fork$2$specification$zoneValues: function(specification, zoneValues) {
+ }, "call$2", "get$handleUncaughtError", 4, 0, 12],
+ fork$2$specification$zoneValues: [function(specification, zoneValues) {
var implementation, t1, parentDelegate;
implementation = this._fork;
t1 = implementation.zone;
parentDelegate = P._parentDelegate(t1);
return implementation.$function.call$5(t1, parentDelegate, this, specification, zoneValues);
- },
- run$1: function(f) {
+ }, function() {
+ return this.fork$2$specification$zoneValues(null, null);
+ }, "fork$0", "call$2$specification$zoneValues", "call$0", "get$fork", 0, 5, 27, 0, 0],
+ run$1: [function(f) {
var implementation, t1, parentDelegate;
implementation = this._run;
t1 = implementation.zone;
parentDelegate = P._parentDelegate(t1);
return implementation.$function.call$4(t1, parentDelegate, this, f);
- },
- runUnary$2: function(f, arg) {
+ }, "call$1", "get$run", 2, 0, 28],
+ runUnary$2: [function(f, arg) {
var implementation, t1, parentDelegate;
implementation = this._runUnary;
t1 = implementation.zone;
parentDelegate = P._parentDelegate(t1);
return implementation.$function.call$5(t1, parentDelegate, this, f, arg);
- },
- runBinary$3: function(f, arg1, arg2) {
+ }, "call$2", "get$runUnary", 4, 0, 29],
+ runBinary$3: [function(f, arg1, arg2) {
var implementation, t1, parentDelegate;
implementation = this._runBinary;
t1 = implementation.zone;
parentDelegate = P._parentDelegate(t1);
return implementation.$function.call$6(t1, parentDelegate, this, f, arg1, arg2);
- },
- registerCallback$1: function(f) {
+ }, "call$3", "get$runBinary", 6, 0, 30],
+ registerCallback$1: [function(f) {
var implementation, t1, parentDelegate;
implementation = this._registerCallback;
t1 = implementation.zone;
parentDelegate = P._parentDelegate(t1);
return implementation.$function.call$4(t1, parentDelegate, this, f);
- },
- registerUnaryCallback$1: function(f) {
+ }, "call$1", "get$registerCallback", 2, 0, 31],
+ registerUnaryCallback$1: [function(f) {
var implementation, t1, parentDelegate;
implementation = this._registerUnaryCallback;
t1 = implementation.zone;
parentDelegate = P._parentDelegate(t1);
return implementation.$function.call$4(t1, parentDelegate, this, f);
- },
- registerBinaryCallback$1: function(f) {
+ }, "call$1", "get$registerUnaryCallback", 2, 0, 32],
+ registerBinaryCallback$1: [function(f) {
var implementation, t1, parentDelegate;
implementation = this._registerBinaryCallback;
t1 = implementation.zone;
parentDelegate = P._parentDelegate(t1);
return implementation.$function.call$4(t1, parentDelegate, this, f);
- },
- errorCallback$2: function(error, stackTrace) {
+ }, "call$1", "get$registerBinaryCallback", 2, 0, 33],
+ errorCallback$2: [function(error, stackTrace) {
var implementation, implementationZone, parentDelegate;
implementation = this._errorCallback;
implementationZone = implementation.zone;
@@ -6564,75 +6725,65 @@ var dart = [
return;
parentDelegate = P._parentDelegate(implementationZone);
return implementation.$function.call$5(implementationZone, parentDelegate, this, error, stackTrace);
- },
- scheduleMicrotask$1: function(f) {
+ }, "call$2", "get$errorCallback", 4, 0, 34],
+ scheduleMicrotask$1: [function(f) {
var implementation, t1, parentDelegate;
implementation = this._scheduleMicrotask;
t1 = implementation.zone;
parentDelegate = P._parentDelegate(t1);
return implementation.$function.call$4(t1, parentDelegate, this, f);
- },
- createTimer$2: function(duration, f) {
+ }, "call$1", "get$scheduleMicrotask", 2, 0, 35],
+ createTimer$2: [function(duration, f) {
var implementation, t1, parentDelegate;
implementation = this._createTimer;
t1 = implementation.zone;
parentDelegate = P._parentDelegate(t1);
return implementation.$function.call$5(t1, parentDelegate, this, duration, f);
- },
- print$1: function(_, line) {
+ }, "call$2", "get$createTimer", 4, 0, 36],
+ createPeriodicTimer$2: [function(duration, f) {
+ var implementation, t1, parentDelegate;
+ implementation = this._createPeriodicTimer;
+ t1 = implementation.zone;
+ parentDelegate = P._parentDelegate(t1);
+ return implementation.$function.call$5(t1, parentDelegate, this, duration, f);
+ }, "call$2", "get$createPeriodicTimer", 4, 0, 37],
+ print$1: [function(_, line) {
var implementation, t1, parentDelegate;
implementation = this._print;
t1 = implementation.zone;
parentDelegate = P._parentDelegate(t1);
return implementation.$function.call$4(t1, parentDelegate, this, line);
- },
- _CustomZone$3: function($parent, specification, _map) {
- var t1;
- this._run = this.parent.get$_run();
- this._runUnary = this.parent.get$_runUnary();
- this._runBinary = this.parent.get$_runBinary();
- this._registerCallback = this.parent.get$_registerCallback();
- this._registerUnaryCallback = this.parent.get$_registerUnaryCallback();
- this._registerBinaryCallback = this.parent.get$_registerBinaryCallback();
- this._errorCallback = this.parent.get$_errorCallback();
- this._scheduleMicrotask = this.parent.get$_scheduleMicrotask();
- this._createTimer = this.parent.get$_createTimer();
- this._createPeriodicTimer = this.parent.get$_createPeriodicTimer();
- this._print = this.parent.get$_print();
- this._fork = this.parent.get$_fork();
- t1 = specification.handleUncaughtError;
- this._handleUncaughtError = t1 != null ? new P._ZoneFunction(this, t1) : this.parent.get$_handleUncaughtError();
- }
+ }, "call$1", "get$print", 2, 0, 38]
},
_CustomZone_bindCallback_closure: {
- "^": "Closure:0;this_0,registered_1",
+ "^": "Closure:0;_async$_captured_this_0,_captured_registered_1",
call$0: function() {
- return this.this_0.runGuarded$1(this.registered_1);
+ return this._async$_captured_this_0.runGuarded$1(this._captured_registered_1);
}
},
_CustomZone_bindCallback_closure0: {
- "^": "Closure:0;this_2,registered_3",
+ "^": "Closure:0;_async$_captured_this_2,_captured_registered_3",
call$0: function() {
- return this.this_2.run$1(this.registered_3);
+ return this._async$_captured_this_2.run$1(this._captured_registered_3);
}
},
_CustomZone_bindUnaryCallback_closure: {
- "^": "Closure:2;this_0,registered_1",
+ "^": "Closure:2;_async$_captured_this_0,_captured_registered_1",
call$1: function(arg) {
- return this.this_0.runUnaryGuarded$2(this.registered_1, arg);
+ return this._async$_captured_this_0.runUnaryGuarded$2(this._captured_registered_1, arg);
}
},
_CustomZone_bindUnaryCallback_closure0: {
- "^": "Closure:2;this_2,registered_3",
+ "^": "Closure:2;_async$_captured_this_2,_captured_registered_3",
call$1: function(arg) {
- return this.this_2.runUnary$2(this.registered_3, arg);
+ return this._async$_captured_this_2.runUnary$2(this._captured_registered_3, arg);
}
},
_rootHandleUncaughtError_closure: {
- "^": "Closure:0;error_0,stackTrace_1",
+ "^": "Closure:0;_async$_captured_error_0,_captured_stackTrace_1",
call$0: function() {
- var t1 = this.error_0;
- throw H.wrapException(new P._UncaughtAsyncError(t1, P._UncaughtAsyncError__getBestStackTrace(t1, this.stackTrace_1)));
+ var t1 = this._async$_captured_error_0;
+ throw H.wrapException(new P._UncaughtAsyncError(t1, P._UncaughtAsyncError__getBestStackTrace(t1, this._captured_stackTrace_1)));
}
},
_RootZone: {
@@ -6762,79 +6913,84 @@ var dart = [
$index: function(_, key) {
return;
},
- handleUncaughtError$2: function(error, stackTrace) {
+ handleUncaughtError$2: [function(error, stackTrace) {
return P._rootHandleUncaughtError(null, null, this, error, stackTrace);
- },
- fork$2$specification$zoneValues: function(specification, zoneValues) {
+ }, "call$2", "get$handleUncaughtError", 4, 0, 12],
+ fork$2$specification$zoneValues: [function(specification, zoneValues) {
return P._rootFork(null, null, this, specification, zoneValues);
- },
- run$1: function(f) {
+ }, function() {
+ return this.fork$2$specification$zoneValues(null, null);
+ }, "fork$0", "call$2$specification$zoneValues", "call$0", "get$fork", 0, 5, 27, 0, 0],
+ run$1: [function(f) {
if ($.Zone__current === C.C__RootZone)
return f.call$0();
return P._rootRun(null, null, this, f);
- },
- runUnary$2: function(f, arg) {
+ }, "call$1", "get$run", 2, 0, 28],
+ runUnary$2: [function(f, arg) {
if ($.Zone__current === C.C__RootZone)
return f.call$1(arg);
return P._rootRunUnary(null, null, this, f, arg);
- },
- runBinary$3: function(f, arg1, arg2) {
+ }, "call$2", "get$runUnary", 4, 0, 29],
+ runBinary$3: [function(f, arg1, arg2) {
if ($.Zone__current === C.C__RootZone)
return f.call$2(arg1, arg2);
return P._rootRunBinary(null, null, this, f, arg1, arg2);
- },
- registerCallback$1: function(f) {
+ }, "call$3", "get$runBinary", 6, 0, 30],
+ registerCallback$1: [function(f) {
return f;
- },
- registerUnaryCallback$1: function(f) {
+ }, "call$1", "get$registerCallback", 2, 0, 31],
+ registerUnaryCallback$1: [function(f) {
return f;
- },
- registerBinaryCallback$1: function(f) {
+ }, "call$1", "get$registerUnaryCallback", 2, 0, 32],
+ registerBinaryCallback$1: [function(f) {
return f;
- },
- errorCallback$2: function(error, stackTrace) {
+ }, "call$1", "get$registerBinaryCallback", 2, 0, 33],
+ errorCallback$2: [function(error, stackTrace) {
return;
- },
- scheduleMicrotask$1: function(f) {
+ }, "call$2", "get$errorCallback", 4, 0, 34],
+ scheduleMicrotask$1: [function(f) {
P._rootScheduleMicrotask(null, null, this, f);
- },
- createTimer$2: function(duration, f) {
+ }, "call$1", "get$scheduleMicrotask", 2, 0, 35],
+ createTimer$2: [function(duration, f) {
return P.Timer__createTimer(duration, f);
- },
- print$1: function(_, line) {
+ }, "call$2", "get$createTimer", 4, 0, 36],
+ createPeriodicTimer$2: [function(duration, f) {
+ return P.Timer__createPeriodicTimer(duration, f);
+ }, "call$2", "get$createPeriodicTimer", 4, 0, 37],
+ print$1: [function(_, line) {
H.printString(line);
- }
+ }, "call$1", "get$print", 2, 0, 38]
},
_RootZone_bindCallback_closure: {
- "^": "Closure:0;this_0,f_1",
+ "^": "Closure:0;_async$_captured_this_0,_captured_f_1",
call$0: function() {
- return this.this_0.runGuarded$1(this.f_1);
+ return this._async$_captured_this_0.runGuarded$1(this._captured_f_1);
}
},
_RootZone_bindCallback_closure0: {
- "^": "Closure:0;this_2,f_3",
+ "^": "Closure:0;_async$_captured_this_2,_captured_f_3",
call$0: function() {
- return this.this_2.run$1(this.f_3);
+ return this._async$_captured_this_2.run$1(this._captured_f_3);
}
},
_RootZone_bindUnaryCallback_closure: {
- "^": "Closure:2;this_0,f_1",
+ "^": "Closure:2;_async$_captured_this_0,_captured_f_1",
call$1: function(arg) {
- return this.this_0.runUnaryGuarded$2(this.f_1, arg);
+ return this._async$_captured_this_0.runUnaryGuarded$2(this._captured_f_1, arg);
}
},
_RootZone_bindUnaryCallback_closure0: {
- "^": "Closure:2;this_2,f_3",
+ "^": "Closure:2;_async$_captured_this_2,_captured_f_3",
call$1: function(arg) {
- return this.this_2.runUnary$2(this.f_3, arg);
+ return this._async$_captured_this_2.runUnary$2(this._captured_f_3, arg);
}
},
runZoned_closure: {
- "^": "Closure:14;onError_0",
+ "^": "Closure:39;_captured_onError_0",
call$5: function($self, $parent, zone, error, stackTrace) {
var e, s, t1, t2, exception;
try {
- t1 = this.onError_0;
+ t1 = this._captured_onError_0;
t2 = H.getDynamicRuntimeType();
t2 = H.buildFunctionType(t2, [t2, t2])._isTest$1(t1);
if (t2) {
@@ -6867,10 +7023,10 @@ var dart = [
},
_defaultEquals: [function(a, b) {
return J.$eq(a, b);
- }, "call$2", "_defaultEquals$closure", 4, 0, 44],
+ }, "call$2", "_defaultEquals$closure", 4, 0, 67],
_defaultHashCode: [function(a) {
return J.get$hashCode$(a);
- }, "call$1", "_defaultHashCode$closure", 2, 0, 26],
+ }, "call$1", "_defaultHashCode$closure", 2, 0, 50],
HashMap_HashMap: function(equals, hashCode, isValidKey, $K, $V) {
return H.setRuntimeTypeInfo(new P._HashMap(0, null, null, null, null), [$K, $V]);
},
@@ -7030,7 +7186,7 @@ var dart = [
$.get$IterableBase__toStringVisiting().push(m);
t2 = result;
t2._contents = t2.get$_contents() + "{";
- t1.first_0 = true;
+ t1._captured_first_0 = true;
J.forEach$1$ax(m, new P.Maps_mapToString_closure(t1, result));
t1 = result;
t1._contents = t1.get$_contents() + "}";
@@ -7506,9 +7662,9 @@ var dart = [
}
},
HashMap_HashMap$from_closure: {
- "^": "Closure:15;result_0",
+ "^": "Closure:40;_captured_result_0",
call$2: function(k, v) {
- this.result_0.$indexSet(0, k, v);
+ this._captured_result_0.$indexSet(0, k, v);
}
},
_HashSetBase: {
@@ -7705,14 +7861,14 @@ var dart = [
$isMap: 1
},
Maps_mapToString_closure: {
- "^": "Closure:15;box_0,result_1",
+ "^": "Closure:40;_collection$_box_0,_collection$_captured_result_1",
call$2: function(k, v) {
var t1, t2;
- t1 = this.box_0;
- if (!t1.first_0)
- this.result_1._contents += ", ";
- t1.first_0 = false;
- t1 = this.result_1;
+ t1 = this._collection$_box_0;
+ if (!t1._captured_first_0)
+ this._collection$_captured_result_1._contents += ", ";
+ t1._captured_first_0 = false;
+ t1 = this._collection$_captured_result_1;
t2 = t1._contents += H.S(k);
t1._contents = t2 + ": ";
t1._contents += H.S(v);
@@ -7920,7 +8076,7 @@ var dart = [
},
_defaultToEncodable: [function(object) {
return object.toJson$0();
- }, "call$1", "_defaultToEncodable$closure", 2, 0, 45],
+ }, "call$1", "_defaultToEncodable$closure", 2, 0, 68],
_JsonMap: {
"^": "Object;_original,_processed,_data",
$index: function(_, key) {
@@ -8241,7 +8397,7 @@ var dart = [
writeMap$1: function(map) {
var t1 = {};
this.writeString$1("{");
- t1.separator_0 = "\"";
+ t1._captured_separator_0 = "\"";
map.forEach$1(0, new P._JsonStringifier_writeMap_closure(t1, this));
this.writeString$1("}");
},
@@ -8250,13 +8406,13 @@ var dart = [
}
},
_JsonStringifier_writeMap_closure: {
- "^": "Closure:16;box_0,this_1",
+ "^": "Closure:41;_convert$_box_0,_captured_this_1",
call$2: function(key, value) {
var t1, t2;
- t1 = this.this_1;
- t2 = this.box_0;
- t1.writeString$1(t2.separator_0);
- t2.separator_0 = ",\"";
+ t1 = this._captured_this_1;
+ t2 = this._convert$_box_0;
+ t1.writeString$1(t2._captured_separator_0);
+ t2._captured_separator_0 = ",\"";
t1.writeStringContent$1(key);
t1.writeString$1("\":");
t1.writeObject$1(value);
@@ -8566,10 +8722,10 @@ var dart = [
}
},
_Utf8Decoder_convert_scanOneByteCharacters: {
- "^": "Closure:17;endIndex_0",
+ "^": "Closure:42;_captured_endIndex_0",
call$2: function(units, from) {
var to, t1, i, unit;
- to = this.endIndex_0;
+ to = this._captured_endIndex_0;
for (t1 = J.getInterceptor$asx(units), i = from; i < to; ++i) {
unit = t1.$index(units, i);
if (typeof unit !== "number")
@@ -8581,9 +8737,9 @@ var dart = [
}
},
_Utf8Decoder_convert_addSingleBytes: {
- "^": "Closure:18;this_1,codeUnits_2,startIndex_3,endIndex_4",
+ "^": "Closure:43;_captured_this_1,_captured_codeUnits_2,_captured_startIndex_3,_captured_endIndex_4",
call$2: function(from, to) {
- this.this_1._stringSink._contents += P.String_String$fromCharCodes(this.codeUnits_2, from, to);
+ this._captured_this_1._stringSink._contents += P.String_String$fromCharCodes(this._captured_codeUnits_2, from, to);
}
}
}],
@@ -8615,12 +8771,12 @@ var dart = [
list = [];
if (t1)
for (; it.moveNext$0();)
- list.push(it._current);
+ list.push(it.get$current());
else
for (i = start; i < end; ++i) {
if (!it.moveNext$0())
throw H.wrapException(P.RangeError$range(end, start, i, null, null));
- list.push(it._current);
+ list.push(it.get$current());
}
return H.Primitives_stringFromCharCodes(list);
},
@@ -8636,10 +8792,10 @@ var dart = [
},
identical: [function(a, b) {
return a == null ? b == null : a === b;
- }, "call$2", "identical$closure", 4, 0, 46],
+ }, "call$2", "identical$closure", 4, 0, 69],
identityHashCode: [function(object) {
return H.objectHashCode(object);
- }, "call$1", "identityHashCode$closure", 2, 0, 47],
+ }, "call$1", "identityHashCode$closure", 2, 0, 70],
List_List$filled: function($length, fill, $E) {
var result, t1, i;
result = J.JSArray_JSArray$fixed($length, $E);
@@ -8701,11 +8857,11 @@ var dart = [
return H.Primitives_stringFromCharCode(charCode);
},
NoSuchMethodError_toString_closure: {
- "^": "Closure:19;box_0",
+ "^": "Closure:44;_box_0",
call$2: function(key, value) {
- var t1 = this.box_0;
- if (t1.i_1 > 0)
- t1.sb_0._contents += ", ";
+ var t1 = this._box_0;
+ if (t1._captured_i_1 > 0)
+ t1._captured_sb_0._contents += ", ";
P._symbolToString(key);
}
},
@@ -8827,7 +8983,7 @@ var dart = [
}
},
Duration_toString_sixDigits: {
- "^": "Closure:20;",
+ "^": "Closure:45;",
call$1: function(n) {
if (n >= 100000)
return "" + n;
@@ -8843,7 +8999,7 @@ var dart = [
}
},
Duration_toString_twoDigits: {
- "^": "Closure:20;",
+ "^": "Closure:45;",
call$1: function(n) {
if (n >= 10)
return "" + n;
@@ -8912,9 +9068,7 @@ var dart = [
}
return explanation;
},
- static: {RangeError$: function(message) {
- return new P.RangeError(null, null, false, null, null, message);
- }, RangeError$value: function(value, $name, message) {
+ static: {RangeError$value: function(value, $name, message) {
return new P.RangeError(null, null, true, value, $name, "Value not in range");
}, RangeError$range: function(invalidValue, minValue, maxValue, $name, message) {
return new P.RangeError(minValue, maxValue, true, invalidValue, $name, "Invalid value");
@@ -8923,7 +9077,9 @@ var dart = [
throw H.wrapException(P.RangeError$range(value, minValue, maxValue, $name, message));
}, RangeError_checkValidRange: function(start, end, $length, startName, endName, message) {
var t1;
- if (start >= 0) {
+ if (typeof start !== "number")
+ return H.iae(start);
+ if (0 <= start) {
if (typeof $length !== "number")
return H.iae($length);
t1 = start > $length;
@@ -8932,7 +9088,9 @@ var dart = [
if (t1)
throw H.wrapException(P.RangeError$range(start, 0, $length, "start", message));
if (end != null) {
- if (!(end < start)) {
+ if (typeof end !== "number")
+ return H.iae(end);
+ if (!(start > end)) {
if (typeof $length !== "number")
return H.iae($length);
t1 = end > $length;
@@ -9267,8 +9425,7 @@ var dart = [
pathToSplit = this._path;
if (pathToSplit.length !== 0 && C.JSString_methods.codeUnitAt$1(pathToSplit, 0) === 47)
pathToSplit = C.JSString_methods.substring$1(pathToSplit, 1);
- t1 = pathToSplit === "" ? C.List_empty : H.setRuntimeTypeInfo(new H.MappedListIterable(pathToSplit.split("/"), P.Uri_decodeComponent$closure()), [null, null]).toList$1$growable(0, false);
- t1 = H.setRuntimeTypeInfo(new P.UnmodifiableListView(t1), [null]);
+ t1 = H.setRuntimeTypeInfo(new P.UnmodifiableListView(pathToSplit === "" ? C.List_empty : H.setRuntimeTypeInfo(new H.MappedListIterable(pathToSplit.split("/"), P.Uri_decodeComponent$closure()), [null, null]).toList$1$growable(0, false)), [null]);
this._pathSegments = t1;
}
return t1;
@@ -9314,8 +9471,8 @@ var dart = [
if (!this._hasDotSegments$1(path))
return path;
output = [];
- for (t1 = path.split("/"), t1 = new H.ListIterator(t1, t1.length, 0, null), appendSlash = false; t1.moveNext$0();) {
- segment = t1._current;
+ for (t1 = path.split("/"), t1 = new J.ArrayIterator(t1, t1.length, 0, null), appendSlash = false; t1.moveNext$0();) {
+ segment = t1.__interceptors$_current;
if (J.$eq(segment, "..")) {
t2 = output.length;
if (t2 !== 0)
@@ -9491,12 +9648,12 @@ var dart = [
}, Uri_parse: function(uri) {
var t1, pathStart, state, t2, i, t3, $char, index, t4, path, numberSignIndex, query, fragment;
t1 = {};
- t1.scheme_0 = "";
- t1.userinfo_1 = "";
- t1.host_2 = null;
- t1.port_3 = null;
- t1.index_4 = 0;
- t1.char_5 = -1;
+ t1._captured_scheme_0 = "";
+ t1._captured_userinfo_1 = "";
+ t1._captured_host_2 = null;
+ t1._captured_port_3 = null;
+ t1._captured_index_4 = 0;
+ t1._captured_char_5 = -1;
t2 = J.getInterceptor$asx(uri);
i = 0;
while (true) {
@@ -9509,7 +9666,7 @@ var dart = [
break;
}
$char = t2.codeUnitAt$1(uri, i);
- t1.char_5 = $char;
+ t1._captured_char_5 = $char;
if ($char === 63 || $char === 35) {
pathStart = 0;
state = 0;
@@ -9523,14 +9680,14 @@ var dart = [
if ($char === 58) {
if (i === 0)
P.Uri__fail(uri, 0, "Invalid empty scheme");
- t1.scheme_0 = P.Uri__makeScheme(uri, i);
+ t1._captured_scheme_0 = P.Uri__makeScheme(uri, i);
++i;
if (i === uri.length) {
- t1.char_5 = -1;
+ t1._captured_char_5 = -1;
state = 0;
} else {
$char = C.JSString_methods.codeUnitAt$1(uri, i);
- t1.char_5 = $char;
+ t1._captured_char_5 = $char;
if ($char === 63 || $char === 35)
state = 0;
else
@@ -9540,48 +9697,48 @@ var dart = [
break;
}
++i;
- t1.char_5 = -1;
+ t1._captured_char_5 = -1;
}
- t1.index_4 = i;
+ t1._captured_index_4 = i;
if (state === 2) {
index = i + 1;
- t1.index_4 = index;
+ t1._captured_index_4 = index;
if (index === t2.get$length(uri)) {
- t1.char_5 = -1;
+ t1._captured_char_5 = -1;
state = 0;
} else {
- $char = t2.codeUnitAt$1(uri, t1.index_4);
- t1.char_5 = $char;
+ $char = t2.codeUnitAt$1(uri, t1._captured_index_4);
+ t1._captured_char_5 = $char;
if ($char === 47) {
- ++t1.index_4;
+ ++t1._captured_index_4;
new P.Uri_parse_parseAuth(t1, uri, -1).call$0();
- pathStart = t1.index_4;
+ pathStart = t1._captured_index_4;
}
- t3 = t1.char_5;
+ t3 = t1._captured_char_5;
state = t3 === 63 || t3 === 35 || t3 === -1 ? 0 : 1;
}
}
if (state === 1)
while (true) {
- t3 = ++t1.index_4;
+ t3 = ++t1._captured_index_4;
t4 = t2.get$length(uri);
if (typeof t4 !== "number")
return H.iae(t4);
if (!(t3 < t4))
break;
- $char = t2.codeUnitAt$1(uri, t1.index_4);
- t1.char_5 = $char;
+ $char = t2.codeUnitAt$1(uri, t1._captured_index_4);
+ t1._captured_char_5 = $char;
if ($char === 63 || $char === 35)
break;
- t1.char_5 = -1;
+ t1._captured_char_5 = -1;
}
- t3 = t1.scheme_0;
- t4 = t1.host_2;
- path = P.Uri__makePath(uri, pathStart, t1.index_4, null, t4 != null, t3 === "file");
- t3 = t1.char_5;
+ t3 = t1._captured_scheme_0;
+ t4 = t1._captured_host_2;
+ path = P.Uri__makePath(uri, pathStart, t1._captured_index_4, null, t4 != null, t3 === "file");
+ t3 = t1._captured_char_5;
if (t3 === 63) {
- numberSignIndex = t2.indexOf$2(uri, "#", t1.index_4 + 1);
- t3 = t1.index_4;
+ numberSignIndex = t2.indexOf$2(uri, "#", t1._captured_index_4 + 1);
+ t3 = t1._captured_index_4;
if (numberSignIndex < 0) {
query = P.Uri__makeQuery(uri, t3 + 1, t2.get$length(uri), null);
fragment = null;
@@ -9590,12 +9747,12 @@ var dart = [
fragment = P.Uri__makeFragment(uri, numberSignIndex + 1, t2.get$length(uri));
}
} else {
- fragment = t3 === 35 ? P.Uri__makeFragment(uri, t1.index_4 + 1, t2.get$length(uri)) : null;
+ fragment = t3 === 35 ? P.Uri__makeFragment(uri, t1._captured_index_4 + 1, t2.get$length(uri)) : null;
query = null;
}
- t2 = t1.scheme_0;
- t3 = t1.userinfo_1;
- return new P.Uri(t1.host_2, t1.port_3, path, t2, t3, query, fragment, null, null);
+ t2 = t1._captured_scheme_0;
+ t3 = t1._captured_userinfo_1;
+ return new P.Uri(t1._captured_host_2, t1._captured_port_3, path, t2, t3, query, fragment, null, null);
}, Uri__fail: function(uri, index, message) {
throw H.wrapException(P.FormatException$(message, uri, index));
}, Uri_Uri: function(fragment, host, path, pathSegments, port, query, queryParameters, scheme, userInfo) {
@@ -9873,7 +10030,7 @@ var dart = [
if (t2)
return P.Uri__normalize(query, start, end, C.List_CVk);
result = new P.StringBuffer("");
- t1.first_0 = true;
+ t1._captured_first_0 = true;
C.JSNull_methods.forEach$1(queryParameters, new P.Uri__makeQuery_closure(t1, result));
t1 = result._contents;
return t1.charCodeAt(0) == 0 ? t1 : t1;
@@ -10034,7 +10191,7 @@ var dart = [
return t1.charCodeAt(0) == 0 ? t1 : t1;
}, Uri_decodeComponent: [function(encodedComponent) {
return P.Uri__uriDecode(encodedComponent, C.Utf8Codec_false, false);
- }, "call$1", "Uri_decodeComponent$closure", 2, 0, 48], Uri_splitQueryString: function(query, encoding) {
+ }, "call$1", "Uri_decodeComponent$closure", 2, 0, 71], Uri_splitQueryString: function(query, encoding) {
return C.JSArray_methods.fold$2(query.split("&"), P.LinkedHashMap_LinkedHashMap$_empty(null, null), new P.Uri_splitQueryString_closure(encoding));
}, Uri_parseIPv4Address: function(host) {
var t1, bytes;
@@ -10196,7 +10353,7 @@ var dart = [
}
return $byte;
}, Uri__uriDecode: function(text, encoding, plusToSpace) {
- var t1, simple, i, t2, codeUnit, bytes, allowMalformed;
+ var t1, simple, i, t2, codeUnit, bytes;
t1 = J.getInterceptor$asx(text);
simple = true;
i = 0;
@@ -10239,64 +10396,63 @@ var dart = [
++i;
}
}
- allowMalformed = encoding._allowMalformed;
- return new P.Utf8Decoder(allowMalformed).convert$1(bytes);
+ return new P.Utf8Decoder(encoding._allowMalformed).convert$1(bytes);
}}
},
Uri_parse_isRegName: {
- "^": "Closure:21;",
+ "^": "Closure:46;",
call$1: function(ch) {
ch.$lt(0, 128);
return false;
}
},
Uri_parse_parseAuth: {
- "^": "Closure:1;box_0,uri_1,EOI_2",
+ "^": "Closure:1;_box_0,_captured_uri_1,_captured_EOI_2",
call$0: function() {
var t1, t2, t3, authStart, $char, lastColon, lastAt, char0, endBracket, hostEnd, hostStart, i, portNumber, digit;
- t1 = this.box_0;
- t2 = this.uri_1;
+ t1 = this._box_0;
+ t2 = this._captured_uri_1;
t3 = J.getInterceptor$asx(t2);
- if (t1.index_4 === t3.get$length(t2)) {
- t1.char_5 = this.EOI_2;
+ if (t1._captured_index_4 === t3.get$length(t2)) {
+ t1._captured_char_5 = this._captured_EOI_2;
return;
}
- authStart = t1.index_4;
- t1.char_5 = t3.codeUnitAt$1(t2, authStart);
- for ($char = this.EOI_2, lastColon = -1, lastAt = -1; t1.index_4 < t2.length;) {
- char0 = C.JSString_methods.codeUnitAt$1(t2, t1.index_4);
- t1.char_5 = char0;
+ authStart = t1._captured_index_4;
+ t1._captured_char_5 = t3.codeUnitAt$1(t2, authStart);
+ for ($char = this._captured_EOI_2, lastColon = -1, lastAt = -1; t1._captured_index_4 < t2.length;) {
+ char0 = C.JSString_methods.codeUnitAt$1(t2, t1._captured_index_4);
+ t1._captured_char_5 = char0;
if (char0 === 47 || char0 === 63 || char0 === 35)
break;
if (char0 === 64) {
- lastAt = t1.index_4;
+ lastAt = t1._captured_index_4;
lastColon = -1;
} else if (char0 === 58)
- lastColon = t1.index_4;
+ lastColon = t1._captured_index_4;
else if (char0 === 91) {
- endBracket = C.JSString_methods.indexOf$2(t2, "]", t1.index_4 + 1);
+ endBracket = C.JSString_methods.indexOf$2(t2, "]", t1._captured_index_4 + 1);
if (endBracket === -1) {
- t1.index_4 = t2.length;
- t1.char_5 = $char;
+ t1._captured_index_4 = t2.length;
+ t1._captured_char_5 = $char;
lastColon = -1;
break;
} else
- t1.index_4 = endBracket;
+ t1._captured_index_4 = endBracket;
lastColon = -1;
}
- ++t1.index_4;
- t1.char_5 = $char;
+ ++t1._captured_index_4;
+ t1._captured_char_5 = $char;
}
- hostEnd = t1.index_4;
+ hostEnd = t1._captured_index_4;
if (lastAt >= 0) {
- t1.userinfo_1 = P.Uri__makeUserInfo(t2, authStart, lastAt);
+ t1._captured_userinfo_1 = P.Uri__makeUserInfo(t2, authStart, lastAt);
hostStart = lastAt + 1;
} else
hostStart = authStart;
if (lastColon >= 0) {
i = lastColon + 1;
- if (i < t1.index_4)
- for (portNumber = 0; i < t1.index_4; ++i) {
+ if (i < t1._captured_index_4)
+ for (portNumber = 0; i < t1._captured_index_4; ++i) {
digit = C.JSString_methods.codeUnitAt$1(t2, i);
if (48 > digit || 57 < digit)
P.Uri__fail(t2, i, "Invalid port number");
@@ -10304,29 +10460,29 @@ var dart = [
}
else
portNumber = null;
- t1.port_3 = P.Uri__makePort(portNumber, t1.scheme_0);
+ t1._captured_port_3 = P.Uri__makePort(portNumber, t1._captured_scheme_0);
hostEnd = lastColon;
}
- t1.host_2 = P.Uri__makeHost(t2, hostStart, hostEnd, true);
- if (t1.index_4 < t2.length)
- t1.char_5 = C.JSString_methods.codeUnitAt$1(t2, t1.index_4);
+ t1._captured_host_2 = P.Uri__makeHost(t2, hostStart, hostEnd, true);
+ if (t1._captured_index_4 < t2.length)
+ t1._captured_char_5 = C.JSString_methods.codeUnitAt$1(t2, t1._captured_index_4);
}
},
Uri__checkNonWindowsPathReservedCharacters_closure: {
- "^": "Closure:2;argumentError_0",
+ "^": "Closure:2;_captured_argumentError_0",
call$1: function(segment) {
if (J.contains$1$asx(segment, "/") === true)
- if (this.argumentError_0)
+ if (this._captured_argumentError_0)
throw H.wrapException(P.ArgumentError$("Illegal path character " + H.S(segment)));
else
throw H.wrapException(P.UnsupportedError$("Illegal path character " + H.S(segment)));
}
},
Uri__checkWindowsPathReservedCharacters_closure: {
- "^": "Closure:2;argumentError_0",
+ "^": "Closure:2;_captured_argumentError_0",
call$1: function(segment) {
if (J.contains$1$asx(segment, new H.JSSyntaxRegExp("[\"*/:<>?\\\\|]", H.JSSyntaxRegExp_makeNative("[\"*/:<>?\\\\|]", false, true, false), null, null)) === true)
- if (this.argumentError_0)
+ if (this._captured_argumentError_0)
throw H.wrapException(P.ArgumentError$("Illegal character in path"));
else
throw H.wrapException(P.UnsupportedError$("Illegal character in path"));
@@ -10339,13 +10495,13 @@ var dart = [
}
},
Uri__makeQuery_closure: {
- "^": "Closure:15;box_0,result_1",
+ "^": "Closure:40;_box_0,_captured_result_1",
call$2: function(key, value) {
- var t1 = this.box_0;
- if (!t1.first_0)
- this.result_1._contents += "&";
- t1.first_0 = false;
- t1 = this.result_1;
+ var t1 = this._box_0;
+ if (!t1._captured_first_0)
+ this._captured_result_1._contents += "&";
+ t1._captured_first_0 = false;
+ t1 = this._captured_result_1;
t1._contents += P.Uri__uriEncode(C.List_nxB, key, C.Utf8Codec_false, true);
value.get$isEmpty(value);
t1._contents += "=";
@@ -10353,70 +10509,70 @@ var dart = [
}
},
Uri_hashCode_combine: {
- "^": "Closure:22;",
+ "^": "Closure:47;",
call$2: function(part, current) {
return current * 31 + J.get$hashCode$(part) & 1073741823;
}
},
Uri_splitQueryString_closure: {
- "^": "Closure:15;encoding_0",
+ "^": "Closure:40;_captured_encoding_0",
call$2: function(map, element) {
var t1, index, key, value;
t1 = J.getInterceptor$asx(element);
index = t1.indexOf$1(element, "=");
if (index === -1) {
if (element !== "")
- J.$indexSet$ax(map, P.Uri__uriDecode(element, this.encoding_0, true), "");
+ J.$indexSet$ax(map, P.Uri__uriDecode(element, this._captured_encoding_0, true), "");
} else if (index !== 0) {
key = t1.substring$2(element, 0, index);
value = C.JSString_methods.substring$1(element, index + 1);
- t1 = this.encoding_0;
+ t1 = this._captured_encoding_0;
J.$indexSet$ax(map, P.Uri__uriDecode(key, t1, true), P.Uri__uriDecode(value, t1, true));
}
return map;
}
},
Uri_parseIPv4Address_error: {
- "^": "Closure:23;",
+ "^": "Closure:38;",
call$1: function(msg) {
throw H.wrapException(P.FormatException$("Illegal IPv4 address, " + msg, null, null));
}
},
Uri_parseIPv4Address_closure: {
- "^": "Closure:2;error_0",
+ "^": "Closure:2;_captured_error_0",
call$1: function(byteString) {
var $byte, t1;
$byte = H.Primitives_parseInt(byteString, null, null);
t1 = J.getInterceptor$n($byte);
if (t1.$lt($byte, 0) || t1.$gt($byte, 255))
- this.error_0.call$1("each part must be in the range of `0..255`");
+ this._captured_error_0.call$1("each part must be in the range of `0..255`");
return $byte;
}
},
Uri_parseIPv6Address_error: {
- "^": "Closure:24;host_0",
+ "^": "Closure:48;_captured_host_0",
call$2: function(msg, position) {
- throw H.wrapException(P.FormatException$("Illegal IPv6 address, " + msg, this.host_0, position));
+ throw H.wrapException(P.FormatException$("Illegal IPv6 address, " + msg, this._captured_host_0, position));
},
call$1: function(msg) {
return this.call$2(msg, null);
}
},
Uri_parseIPv6Address_parseHex: {
- "^": "Closure:25;host_1,error_2",
+ "^": "Closure:49;_captured_host_1,_captured_error_2",
call$2: function(start, end) {
var value, t1;
if (J.$gt$n(J.$sub$n(end, start), 4))
- this.error_2.call$2("an IPv6 part can only contain a maximum of 4 hex digits", start);
- value = H.Primitives_parseInt(C.JSString_methods.substring$2(this.host_1, start, end), 16, null);
+ this._captured_error_2.call$2("an IPv6 part can only contain a maximum of 4 hex digits", start);
+ value = H.Primitives_parseInt(C.JSString_methods.substring$2(this._captured_host_1, start, end), 16, null);
t1 = J.getInterceptor$n(value);
if (t1.$lt(value, 0) || t1.$gt(value, 65535))
- this.error_2.call$2("each part must be in the range of `0x0..0xFFFF`", start);
+ this._captured_error_2.call$2("each part must be in the range of `0x0..0xFFFF`", start);
return value;
}
},
Uri__uriEncode_byteToHex: {
- "^": "Closure:15;",
+ "^": "Closure:40;",
call$2: function($byte, buffer) {
buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods.codeUnitAt$1("0123456789ABCDEF", $byte >>> 4));
buffer._contents += H.Primitives_stringFromCharCode(C.JSString_methods.codeUnitAt$1("0123456789ABCDEF", $byte & 15));
@@ -10467,7 +10623,7 @@ var dart = [
$isElement: 1,
$isNode: 1,
$isObject: 1,
- "%": "HTMLAppletElement|HTMLBRElement|HTMLBaseElement|HTMLButtonElement|HTMLCanvasElement|HTMLContentElement|HTMLDListElement|HTMLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirectoryElement|HTMLDivElement|HTMLFieldSetElement|HTMLFontElement|HTMLFrameElement|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMenuElement|HTMLMenuItemElement|HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOptGroupElement|HTMLOptionElement|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPictureElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLShadowElement|HTMLSpanElement|HTMLStyleElement|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemplateElement|HTMLTextAreaElement|HTMLTitleElement|HTMLUListElement|HTMLUnknownElement;HTMLElement"
+ "%": "HTMLAppletElement|HTMLBRElement|HTMLBaseElement|HTMLButtonElement|HTMLCanvasElement|HTMLContentElement|HTMLDListElement|HTMLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirectoryElement|HTMLFieldSetElement|HTMLFontElement|HTMLFrameElement|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLKeygenElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLLinkElement|HTMLMapElement|HTMLMarqueeElement|HTMLMenuElement|HTMLMenuItemElement|HTMLMetaElement|HTMLMeterElement|HTMLModElement|HTMLOptGroupElement|HTMLOptionElement|HTMLOutputElement|HTMLParagraphElement|HTMLParamElement|HTMLPictureElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLShadowElement|HTMLSpanElement|HTMLStyleElement|HTMLTableCaptionElement|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemplateElement|HTMLTextAreaElement|HTMLTitleElement|HTMLUListElement|HTMLUnknownElement;HTMLElement"
},
AnchorElement: {
"^": "HtmlElement;origin=",
@@ -10524,6 +10680,10 @@ var dart = [
CssStyleDeclarationBase: {
"^": "Object;"
},
+ DivElement: {
+ "^": "HtmlElement;",
+ "%": ";HTMLDivElement"
+ },
DocumentFragment: {
"^": "Node;",
$isInterceptor: 1,
@@ -10608,7 +10768,7 @@ var dart = [
},
Event: {
"^": "Interceptor;",
- "%": "AnimationPlayerEvent|AudioProcessingEvent|AutocompleteErrorEvent|BeforeUnloadEvent|CloseEvent|CustomEvent|DeviceLightEvent|DeviceMotionEvent|DeviceOrientationEvent|FetchEvent|FontFaceSetLoadEvent|GamepadEvent|HashChangeEvent|IDBVersionChangeEvent|InstallEvent|InstallPhaseEvent|MIDIConnectionEvent|MediaKeyNeededEvent|MediaStreamEvent|MediaStreamTrackEvent|MutationEvent|OfflineAudioCompletionEvent|OverflowEvent|PageTransitionEvent|PopStateEvent|ProgressEvent|RTCDTMFToneChangeEvent|RTCDataChannelEvent|RTCIceCandidateEvent|RelatedEvent|ResourceProgressEvent|SecurityPolicyViolationEvent|SpeechRecognitionEvent|SpeechSynthesisEvent|StorageEvent|TrackEvent|TransitionEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransitionEvent|XMLHttpRequestProgressEvent;ClipboardEvent|Event|InputEvent"
+ "%": "AnimationPlayerEvent|AudioProcessingEvent|AutocompleteErrorEvent|BeforeUnloadEvent|CloseEvent|CustomEvent|DeviceLightEvent|DeviceMotionEvent|DeviceOrientationEvent|ExtendableEvent|FetchEvent|FontFaceSetLoadEvent|GamepadEvent|HashChangeEvent|IDBVersionChangeEvent|InstallEvent|MIDIConnectionEvent|MediaKeyNeededEvent|MediaQueryListEvent|MediaStreamEvent|MediaStreamTrackEvent|MutationEvent|OfflineAudioCompletionEvent|OverflowEvent|PageTransitionEvent|PopStateEvent|ProgressEvent|RTCDTMFToneChangeEvent|RTCDataChannelEvent|RTCIceCandidateEvent|RTCPeerConnectionIceEvent|RelatedEvent|ResourceProgressEvent|SecurityPolicyViolationEvent|SpeechRecognitionEvent|SpeechSynthesisEvent|StorageEvent|TrackEvent|TransitionEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTransitionEvent|XMLHttpRequestProgressEvent;ClipboardEvent|Event|InputEvent"
},
EventTarget: {
"^": "Interceptor;",
@@ -10770,7 +10930,7 @@ var dart = [
},
$isNode: 1,
$isObject: 1,
- "%": "Attr|Document|HTMLDocument|Notation|XMLDocument;Node"
+ "%": "Attr|Document|HTMLDocument|XMLDocument;Node"
},
NodeList: {
"^": "Interceptor_ListMixin_ImmutableListMixin0;",
@@ -10832,6 +10992,10 @@ var dart = [
"^": "HtmlElement;data=",
"%": "HTMLObjectElement"
},
+ PluginPlaceholderElement: {
+ "^": "DivElement;message=",
+ "%": "PluginPlaceholderElement"
+ },
PositionError: {
"^": "Interceptor;message=",
"%": "PositionError"
@@ -11350,7 +11514,7 @@ var dart = [
if (t1)
return b;
return a;
- }, "call$2", "max$closure", 4, 0, 49]
+ }, "call$2", "max$closure", 4, 0, 72]
}],
["dart.typed_data.implementation", "dart:_native_typed_data", , H, {
"^": "",
@@ -11602,6 +11766,9 @@ var dart = [
get$isCore: function() {
return this.uri.scheme === "dart";
},
+ get$library: function() {
+ return $.get$context().prettyUri$1(this.uri);
+ },
get$$package: function() {
var t1 = this.uri;
if (t1.scheme !== "package")
@@ -11622,7 +11789,7 @@ var dart = [
return this.get$location(this) + " in " + H.S(this.member);
},
static: {Frame_Frame$parseVM: function(frame) {
- var match, t1, t2, member, uri, lineAndColumn, line, column;
+ var match, t1, t2, member, uri, lineAndColumn, line;
if (J.$eq(frame, "..."))
return new S.Frame(P.Uri_Uri(null, null, null, null, null, null, null, "", ""), null, null, "...");
match = $.get$_vmFrame().firstMatch$1(frame);
@@ -11641,8 +11808,7 @@ var dart = [
return H.ioore(t1, 3);
lineAndColumn = J.split$1$s(t1[3], ":");
line = lineAndColumn.length > 1 ? H.Primitives_parseInt(lineAndColumn[1], null, null) : null;
- column = lineAndColumn.length > 2 ? H.Primitives_parseInt(lineAndColumn[2], null, null) : null;
- return new S.Frame(uri, line, column, member);
+ return new S.Frame(uri, line, lineAndColumn.length > 2 ? H.Primitives_parseInt(lineAndColumn[2], null, null) : null, member);
}, Frame_Frame$parseV8: function(frame) {
var match, t1, t2, t3, t4;
match = $.get$_v8Frame().firstMatch$1(frame);
@@ -11677,7 +11843,7 @@ var dart = [
}}
},
Frame_Frame$parseV8_parseLocation: {
- "^": "Closure:15;frame_0",
+ "^": "Closure:40;_captured_frame_0",
call$2: function($location, member) {
var t1, evalMatch, t2, urlMatch, t3;
t1 = $.get$_v8EvalLocation();
@@ -11691,7 +11857,7 @@ var dart = [
}
urlMatch = $.get$_v8UrlLocation().firstMatch$1($location);
if (urlMatch == null)
- throw H.wrapException(P.FormatException$("Couldn't parse V8 stack trace line '" + H.S(this.frame_0) + "'.", null, null));
+ throw H.wrapException(P.FormatException$("Couldn't parse V8 stack trace line '" + H.S(this._captured_frame_0) + "'.", null, null));
t1 = urlMatch._match;
if (1 >= t1.length)
return H.ioore(t1, 1);
@@ -11719,32 +11885,32 @@ var dart = [
return new P.convertNativeToDart_AcceptStructuredClone_walk(mustCopy, new P.convertNativeToDart_AcceptStructuredClone_findSlot([], copies), new P.convertNativeToDart_AcceptStructuredClone_readSlot(copies), new P.convertNativeToDart_AcceptStructuredClone_writeSlot(copies)).call$1(object);
},
_convertDartToNative_PrepareForStructuredClone_findSlot: {
- "^": "Closure:26;values_1,copies_2",
+ "^": "Closure:50;_captured_values_1,_captured_copies_2",
call$1: function(value) {
var t1, $length, i;
- t1 = this.values_1;
+ t1 = this._captured_values_1;
$length = t1.length;
for (i = 0; i < $length; ++i)
if (t1[i] === value)
return i;
t1.push(value);
- this.copies_2.push(null);
+ this._captured_copies_2.push(null);
return $length;
}
},
_convertDartToNative_PrepareForStructuredClone_readSlot: {
- "^": "Closure:27;copies_3",
+ "^": "Closure:51;_captured_copies_3",
call$1: function(i) {
- var t1 = this.copies_3;
+ var t1 = this._captured_copies_3;
if (i >= t1.length)
return H.ioore(t1, i);
return t1[i];
}
},
_convertDartToNative_PrepareForStructuredClone_writeSlot: {
- "^": "Closure:28;copies_4",
+ "^": "Closure:52;_captured_copies_4",
call$2: function(i, x) {
- var t1 = this.copies_4;
+ var t1 = this._captured_copies_4;
if (i >= t1.length)
return H.ioore(t1, i);
t1[i] = x;
@@ -11756,7 +11922,7 @@ var dart = [
}
},
_convertDartToNative_PrepareForStructuredClone_walk: {
- "^": "Closure:2;findSlot_5,readSlot_6,writeSlot_7",
+ "^": "Closure:2;_captured_findSlot_5,_captured_readSlot_6,_captured_writeSlot_7",
call$1: function(e) {
var t1, t2, slot, copy, $length, i;
t1 = {};
@@ -11782,30 +11948,30 @@ var dart = [
if (!!t2.$isNativeTypedData)
return e;
if (!!t2.$isMap) {
- slot = this.findSlot_5.call$1(e);
- copy = this.readSlot_6.call$1(slot);
- t1.copy_0 = copy;
+ slot = this._captured_findSlot_5.call$1(e);
+ copy = this._captured_readSlot_6.call$1(slot);
+ t1._captured_copy_0 = copy;
if (copy != null)
return copy;
copy = {};
- t1.copy_0 = copy;
- this.writeSlot_7.call$2(slot, copy);
+ t1._captured_copy_0 = copy;
+ this._captured_writeSlot_7.call$2(slot, copy);
t2.forEach$1(e, new P._convertDartToNative_PrepareForStructuredClone_walk_closure(t1, this));
- return t1.copy_0;
+ return t1._captured_copy_0;
}
if (!!t2.$isList) {
$length = t2.get$length(e);
- slot = this.findSlot_5.call$1(e);
- copy = this.readSlot_6.call$1(slot);
+ slot = this._captured_findSlot_5.call$1(e);
+ copy = this._captured_readSlot_6.call$1(slot);
if (copy != null) {
if (true === copy) {
copy = new Array($length);
- this.writeSlot_7.call$2(slot, copy);
+ this._captured_writeSlot_7.call$2(slot, copy);
}
return copy;
}
copy = new Array($length);
- this.writeSlot_7.call$2(slot, copy);
+ this._captured_writeSlot_7.call$2(slot, copy);
for (i = 0; i < $length; ++i) {
t1 = this.call$1(t2.$index(e, i));
if (i >= copy.length)
@@ -11818,16 +11984,16 @@ var dart = [
}
},
_convertDartToNative_PrepareForStructuredClone_walk_closure: {
- "^": "Closure:15;box_0,walk_8",
+ "^": "Closure:40;_html_common$_box_0,_captured_walk_8",
call$2: function(key, value) {
- this.box_0.copy_0[key] = this.walk_8.call$1(value);
+ this._html_common$_box_0._captured_copy_0[key] = this._captured_walk_8.call$1(value);
}
},
convertNativeToDart_AcceptStructuredClone_findSlot: {
- "^": "Closure:26;values_0,copies_1",
+ "^": "Closure:50;_captured_values_0,_captured_copies_1",
call$1: function(value) {
var t1, $length, i, t2;
- t1 = this.values_0;
+ t1 = this._captured_values_0;
$length = t1.length;
for (i = 0; i < $length; ++i) {
t2 = t1[i];
@@ -11835,30 +12001,30 @@ var dart = [
return i;
}
t1.push(value);
- this.copies_1.push(null);
+ this._captured_copies_1.push(null);
return $length;
}
},
convertNativeToDart_AcceptStructuredClone_readSlot: {
- "^": "Closure:27;copies_2",
+ "^": "Closure:51;_captured_copies_2",
call$1: function(i) {
- var t1 = this.copies_2;
+ var t1 = this._captured_copies_2;
if (i >= t1.length)
return H.ioore(t1, i);
return t1[i];
}
},
convertNativeToDart_AcceptStructuredClone_writeSlot: {
- "^": "Closure:28;copies_3",
+ "^": "Closure:52;_captured_copies_3",
call$2: function(i, x) {
- var t1 = this.copies_3;
+ var t1 = this._captured_copies_3;
if (i >= t1.length)
return H.ioore(t1, i);
t1[i] = x;
}
},
convertNativeToDart_AcceptStructuredClone_walk: {
- "^": "Closure:2;mustCopy_4,findSlot_5,readSlot_6,writeSlot_7",
+ "^": "Closure:2;_captured_mustCopy_4,_captured_findSlot_5,_captured_readSlot_6,_captured_writeSlot_7",
call$1: function(e) {
var proto, slot, copy, t1, key, $length, t2, i;
if (e == null)
@@ -11875,27 +12041,27 @@ var dart = [
throw H.wrapException(P.UnimplementedError$("structured clone of RegExp"));
proto = Object.getPrototypeOf(e);
if (proto === Object.prototype || proto === null) {
- slot = this.findSlot_5.call$1(e);
- copy = this.readSlot_6.call$1(slot);
+ slot = this._captured_findSlot_5.call$1(e);
+ copy = this._captured_readSlot_6.call$1(slot);
if (copy != null)
return copy;
copy = P.LinkedHashMap_LinkedHashMap$_empty(null, null);
- this.writeSlot_7.call$2(slot, copy);
- for (t1 = Object.keys(e), t1 = new H.ListIterator(t1, t1.length, 0, null); t1.moveNext$0();) {
- key = t1._current;
+ this._captured_writeSlot_7.call$2(slot, copy);
+ for (t1 = Object.keys(e), t1 = new J.ArrayIterator(t1, t1.length, 0, null); t1.moveNext$0();) {
+ key = t1.__interceptors$_current;
copy.$indexSet(0, key, this.call$1(e[key]));
}
return copy;
}
if (e instanceof Array) {
- slot = this.findSlot_5.call$1(e);
- copy = this.readSlot_6.call$1(slot);
+ slot = this._captured_findSlot_5.call$1(e);
+ copy = this._captured_readSlot_6.call$1(slot);
if (copy != null)
return copy;
t1 = J.getInterceptor$asx(e);
$length = t1.get$length(e);
- copy = this.mustCopy_4 ? new Array($length) : e;
- this.writeSlot_7.call$2(slot, copy);
+ copy = this._captured_mustCopy_4 ? new Array($length) : e;
+ this._captured_writeSlot_7.call$2(slot, copy);
if (typeof $length !== "number")
return H.iae($length);
t2 = J.getInterceptor$ax(copy);
@@ -11932,9 +12098,9 @@ var dart = [
$isTrace: 1
},
LazyTrace_terse_closure: {
- "^": "Closure:0;this_0",
+ "^": "Closure:0;_lazy_trace$_captured_this_0",
call$0: function() {
- return this.this_0.get$_trace().get$terse();
+ return this._lazy_trace$_captured_this_0.get$_trace().get$terse();
}
}
}],
@@ -12042,7 +12208,7 @@ var dart = [
Context: {
"^": "Object;style,_context0$_current",
join$8: function(_, part1, part2, part3, part4, part5, part6, part7, part8) {
- var parts = [part1, part2, part3, part4, part5, part6, part7, part8];
+ var parts = H.setRuntimeTypeInfo([part1, part2, part3, part4, part5, part6, part7, part8], [P.String]);
F._validateArgList("join", parts);
return this.joinAll$1(H.setRuntimeTypeInfo(new H.WhereIterable(parts, new F.Context_join_closure()), [H.getTypeArgumentByIndex(parts, 0)]));
},
@@ -12050,15 +12216,15 @@ var dart = [
return this.join$8($receiver, part1, part2, null, null, null, null, null, null);
},
joinAll$1: function(parts) {
- var buffer, t1, t2, t3, needsSeparator, isAbsoluteAndNotRootRelative, part, parsed, t4, root, t5;
+ var buffer, t1, t2, t3, needsSeparator, isAbsoluteAndNotRootRelative, part, parsed, t4, t5;
buffer = new P.StringBuffer("");
- for (t1 = H.setRuntimeTypeInfo(new H.WhereIterable(parts, new F.Context_joinAll_closure()), [H.getRuntimeTypeArgument(parts, "IterableBase", 0)]), t1 = H.setRuntimeTypeInfo(new H.WhereIterator(J.get$iterator$ax(t1._iterable), t1._f), [H.getTypeArgumentByIndex(t1, 0)]), t2 = this.style, t3 = t1._iterator, needsSeparator = false, isAbsoluteAndNotRootRelative = false; t1.moveNext$0();) {
+ for (t1 = H.setRuntimeTypeInfo(new H.WhereIterable(parts, new F.Context_joinAll_closure()), [H.getRuntimeTypeArgument(parts, "IterableBase", 0)]), t1 = H.setRuntimeTypeInfo(new H.WhereIterator(J.get$iterator$ax(t1.__internal$_iterable), t1._f), [H.getTypeArgumentByIndex(t1, 0)]), t2 = this.style, t3 = t1._iterator, needsSeparator = false, isAbsoluteAndNotRootRelative = false; t1.moveNext$0();) {
part = t3.get$current();
- if (Q.ParsedPath_ParsedPath$parse(part, t2).isRootRelative && isAbsoluteAndNotRootRelative) {
+ if (t2.isRootRelative$1(part) && isAbsoluteAndNotRootRelative) {
parsed = Q.ParsedPath_ParsedPath$parse(part, t2);
t4 = buffer._contents;
- root = Q.ParsedPath_ParsedPath$parse(t4.charCodeAt(0) == 0 ? t4 : t4, t2).root;
- t4 = root == null ? "" : root;
+ t4 = t4.charCodeAt(0) == 0 ? t4 : t4;
+ t4 = C.JSString_methods.substring$2(t4, 0, t2.rootLength$1(t4));
parsed.root = t4;
if (t2.needsSeparator$1(t4)) {
t4 = parsed.separators;
@@ -12069,8 +12235,8 @@ var dart = [
}
buffer._contents = "";
buffer._contents += parsed.toString$0(0);
- } else if (Q.ParsedPath_ParsedPath$parse(part, t2).root != null) {
- isAbsoluteAndNotRootRelative = !Q.ParsedPath_ParsedPath$parse(part, t2).isRootRelative;
+ } else if (t2.rootLength$1(part) > 0) {
+ isAbsoluteAndNotRootRelative = !t2.isRootRelative$1(part);
buffer._contents = "";
buffer._contents += H.S(part);
} else {
@@ -12105,16 +12271,16 @@ var dart = [
},
relative$2$from: function(path, from) {
var t1, t2, fromParsed, pathParsed, t3;
- t1 = this._context0$_current;
- from = t1 != null ? t1 : B.current();
+ from = this._context0$_current;
+ from = from != null ? from : B.current();
t1 = this.style;
- if (Q.ParsedPath_ParsedPath$parse(from, t1).root == null && Q.ParsedPath_ParsedPath$parse(path, t1).root != null)
+ if (t1.rootLength$1(from) <= 0 && t1.rootLength$1(path) > 0)
return this.normalize$1(path);
- if (Q.ParsedPath_ParsedPath$parse(path, t1).root == null || Q.ParsedPath_ParsedPath$parse(path, t1).isRootRelative) {
+ if (t1.rootLength$1(path) <= 0 || t1.isRootRelative$1(path)) {
t2 = this._context0$_current;
path = this.join$8(0, t2 != null ? t2 : B.current(), path, null, null, null, null, null, null);
}
- if (Q.ParsedPath_ParsedPath$parse(path, t1).root == null && Q.ParsedPath_ParsedPath$parse(from, t1).root != null)
+ if (t1.rootLength$1(path) <= 0 && t1.rootLength$1(from) > 0)
throw H.wrapException(E.PathException$("Unable to find a path to \"" + path + "\" from \"" + H.S(from) + "\"."));
fromParsed = Q.ParsedPath_ParsedPath$parse(from, t1);
fromParsed.normalize$0();
@@ -12123,23 +12289,19 @@ var dart = [
t2 = fromParsed.parts;
if (t2.length > 0 && J.$eq(t2[0], "."))
return pathParsed.toString$0(0);
- t2 = fromParsed.root;
- t3 = pathParsed.root;
- if (t2 == null ? t3 != null : t2 !== t3)
- if (!(t2 == null || t3 == null)) {
- t2.toString;
- t2 = t2.toLowerCase();
+ if (!J.$eq(fromParsed.root, pathParsed.root)) {
+ t2 = fromParsed.root;
+ if (!(t2 == null || pathParsed.root == null)) {
+ t2 = J.toLowerCase$0$s(t2);
H.checkString("\\");
t2 = H.stringReplaceAllUnchecked(t2, "/", "\\");
- t3 = pathParsed.root;
- t3.toString;
- t3 = t3.toLowerCase();
+ t3 = J.toLowerCase$0$s(pathParsed.root);
H.checkString("\\");
t3 = t2 !== H.stringReplaceAllUnchecked(t3, "/", "\\");
t2 = t3;
} else
t2 = true;
- else
+ } else
t2 = false;
if (t2)
return pathParsed.toString$0(0);
@@ -12193,7 +12355,7 @@ var dart = [
toUri$1: function(path) {
var t1, t2;
t1 = this.style;
- if (Q.ParsedPath_ParsedPath$parse(path, t1).root == null)
+ if (t1.rootLength$1(path) <= 0)
return t1.relativePathToUri$1(path);
else {
t2 = this._context0$_current;
@@ -12227,7 +12389,6 @@ var dart = [
return uri.toString$0(0);
path = this.normalize$1(this.fromUri$1(uri));
rel = this.relative$1(path);
- this.split$1(0, rel);
return this.split$1(0, rel).length > this.split$1(0, path).length ? path : rel;
},
static: {Context_Context: function(current, style) {
@@ -12236,7 +12397,7 @@ var dart = [
style = $.get$Style_platform();
else if (!style.$isInternalStyle)
throw H.wrapException(P.ArgumentError$("Only styles defined by the path package are allowed."));
- return new F.Context(style, current);
+ return new F.Context(H.interceptedTypeCast(style, "$isInternalStyle"), current);
}}
},
Context_join_closure: {
@@ -12268,6 +12429,12 @@ var dart = [
"^": "",
InternalStyle: {
"^": "Style;",
+ getRoot$1: function(path) {
+ var $length = this.rootLength$1(path);
+ if ($length > 0)
+ return J.substring$2$s(path, 0, $length);
+ return this.isRootRelative$1(path) ? J.$index$asx(path, 0) : null;
+ },
relativePathToUri$1: function(path) {
return P.Uri_Uri(null, null, null, F.Context_Context(null, this).split$1(0, path), null, null, null, "", "");
}
@@ -12304,9 +12471,9 @@ var dart = [
},
normalize$0: function() {
var newParts, t1, leadingDoubles, part, t2, newSeparators;
- newParts = [];
- for (t1 = this.parts, t1 = new H.ListIterator(t1, t1.length, 0, null), leadingDoubles = 0; t1.moveNext$0();) {
- part = t1._current;
+ newParts = H.setRuntimeTypeInfo([], [P.String]);
+ for (t1 = this.parts, t1 = new J.ArrayIterator(t1, t1.length, 0, null), leadingDoubles = 0; t1.moveNext$0();) {
+ part = t1.__interceptors$_current;
t2 = J.getInterceptor(part);
if (t2.$eq(part, ".") || t2.$eq(part, ""))
;
@@ -12322,17 +12489,14 @@ var dart = [
C.JSArray_methods.insertAll$2(newParts, 0, P.List_List$filled(leadingDoubles, "..", null));
if (newParts.length === 0 && this.root == null)
newParts.push(".");
- newSeparators = P.List_List$generate(newParts.length, new Q.ParsedPath_normalize_closure(this), true, null);
+ newSeparators = P.List_List$generate(newParts.length, new Q.ParsedPath_normalize_closure(this), true, P.String);
t1 = this.root;
C.JSArray_methods.insert$2(newSeparators, 0, t1 != null && newParts.length > 0 && this.style.needsSeparator$1(t1) ? this.style.get$separator() : "");
this.parts = newParts;
this.separators = newSeparators;
t1 = this.root;
- if (t1 != null && this.style === $.get$Style_windows()) {
- t1.toString;
- H.checkString("\\");
- this.root = H.stringReplaceAllUnchecked(t1, "/", "\\");
- }
+ if (t1 != null && this.style === $.get$Style_windows())
+ this.root = J.replaceAll$2$s(t1, "/", "\\");
this.removeTrailingSeparators$0();
},
toString$0: function(_) {
@@ -12355,16 +12519,16 @@ var dart = [
return t1.charCodeAt(0) == 0 ? t1 : t1;
},
static: {ParsedPath_ParsedPath$parse: function(path, style) {
- var root, t1, parts, separators, t2, start, i, t3;
+ var root, isRootRelative, parts, separators, t1, start, i, t2;
root = style.getRoot$1(path);
- t1 = style.getRelativeRoot$1(path);
+ isRootRelative = style.isRootRelative$1(path);
if (root != null)
- path = J.substring$1$s(path, root.length);
- parts = [];
- separators = [];
- t2 = J.getInterceptor$asx(path);
- if (t2.get$isNotEmpty(path) && style.isSeparator$1(t2.codeUnitAt$1(path, 0))) {
- separators.push(t2.$index(path, 0));
+ path = J.substring$1$s(path, J.get$length$asx(root));
+ parts = H.setRuntimeTypeInfo([], [P.String]);
+ separators = H.setRuntimeTypeInfo([], [P.String]);
+ t1 = J.getInterceptor$asx(path);
+ if (t1.get$isNotEmpty(path) && style.isSeparator$1(t1.codeUnitAt$1(path, 0))) {
+ separators.push(t1.$index(path, 0));
start = 1;
} else {
separators.push("");
@@ -12372,12 +12536,12 @@ var dart = [
}
i = start;
while (true) {
- t3 = t2.get$length(path);
- if (typeof t3 !== "number")
- return H.iae(t3);
- if (!(i < t3))
+ t2 = t1.get$length(path);
+ if (typeof t2 !== "number")
+ return H.iae(t2);
+ if (!(i < t2))
break;
- if (style.isSeparator$1(t2.codeUnitAt$1(path, i))) {
+ if (style.isSeparator$1(t1.codeUnitAt$1(path, i))) {
parts.push(C.JSString_methods.substring$2(path, start, i));
if (i >= path.length)
return H.ioore(path, i);
@@ -12386,20 +12550,20 @@ var dart = [
}
++i;
}
- t3 = t2.get$length(path);
- if (typeof t3 !== "number")
- return H.iae(t3);
- if (start < t3) {
- parts.push(t2.substring$1(path, start));
+ t2 = t1.get$length(path);
+ if (typeof t2 !== "number")
+ return H.iae(t2);
+ if (start < t2) {
+ parts.push(t1.substring$1(path, start));
separators.push("");
}
- return new Q.ParsedPath(style, root, t1 != null, parts, separators);
+ return new Q.ParsedPath(style, root, isRootRelative, parts, separators);
}}
},
ParsedPath_normalize_closure: {
- "^": "Closure:2;this_0",
+ "^": "Closure:2;_captured_this_0",
call$1: function(_) {
- return this.this_0.style.get$separator();
+ return this._captured_this_0.style.get$separator();
}
}
}],
@@ -12447,14 +12611,14 @@ var dart = [
var t1 = J.getInterceptor$asx(path);
return t1.get$isNotEmpty(path) && t1.codeUnitAt$1(path, J.$sub$n(t1.get$length(path), 1)) !== 47;
},
- getRoot$1: function(path) {
+ rootLength$1: function(path) {
var t1 = J.getInterceptor$asx(path);
if (t1.get$isNotEmpty(path) && t1.codeUnitAt$1(path, 0) === 47)
- return "/";
- return;
+ return 1;
+ return 0;
},
- getRelativeRoot$1: function(path) {
- return;
+ isRootRelative$1: function(path) {
+ return false;
},
pathFromUri$1: function(uri) {
var t1 = uri.scheme;
@@ -12485,24 +12649,32 @@ var dart = [
return codeUnit === 47;
},
needsSeparator$1: function(path) {
- var t1, root;
- t1 = J.getInterceptor$asx(path);
+ var t1 = J.getInterceptor$asx(path);
if (t1.get$isEmpty(path) === true)
return false;
if (t1.codeUnitAt$1(path, J.$sub$n(t1.get$length(path), 1)) !== 47)
return true;
- root = this._url$_getRoot$1(path);
- return root != null && C.JSString_methods.endsWith$1(root, "://");
+ return C.JSString_methods.endsWith$1(path, "://") && this.rootLength$1(path) === path.length;
},
- getRoot$1: function(path) {
- var root = this._url$_getRoot$1(path);
- return root == null ? this.getRelativeRoot$1(path) : root;
+ rootLength$1: function(path) {
+ var t1, index;
+ t1 = J.getInterceptor$asx(path);
+ if (t1.get$isEmpty(path) === true)
+ return 0;
+ if (t1.codeUnitAt$1(path, 0) === 47)
+ return 1;
+ index = C.JSString_methods.indexOf$1(path, "/");
+ if (index > 0 && C.JSString_methods.startsWith$2(path, "://", index - 1)) {
+ index = C.JSString_methods.indexOf$2(path, "/", index + 2);
+ if (index > 0)
+ return index;
+ return path.length;
+ }
+ return 0;
},
- getRelativeRoot$1: function(path) {
+ isRootRelative$1: function(path) {
var t1 = J.getInterceptor$asx(path);
- if (t1.get$isEmpty(path) === true)
- return;
- return t1.codeUnitAt$1(path, 0) === 47 ? "/" : null;
+ return t1.get$isNotEmpty(path) && t1.codeUnitAt$1(path, 0) === 47;
},
pathFromUri$1: function(uri) {
return uri.toString$0(0);
@@ -12512,36 +12684,6 @@ var dart = [
},
absolutePathToUri$1: function(path) {
return P.Uri_parse(path);
- },
- _url$_getRoot$1: function(path) {
- var t1, start, $char, start0;
- t1 = J.getInterceptor$asx(path);
- if (t1.get$isEmpty(path) === true)
- return;
- if (!N.isAlphabetic(t1.codeUnitAt$1(path, 0)))
- return;
- for (t1 = path.length, start = 1; start < t1; ++start) {
- $char = C.JSString_methods.codeUnitAt$1(path, start);
- if (N.isAlphabetic($char))
- continue;
- if ($char >= 48 && $char <= 57)
- continue;
- if ($char === 45 || $char === 43 || $char === 46)
- continue;
- break;
- }
- start0 = start + 3;
- if (start0 > t1)
- return;
- if (C.JSString_methods.substring$2(path, start, start0) !== "://")
- return;
- start = start0;
- while (true) {
- if (!(start < t1 && C.JSString_methods.codeUnitAt$1(path, start) !== 47))
- break;
- ++start;
- }
- return C.JSString_methods.substring$2(path, 0, start);
}
}
}],
@@ -12562,29 +12704,43 @@ var dart = [
t1 = t1.codeUnitAt$1(path, J.$sub$n(t1.get$length(path), 1));
return !(t1 === 47 || t1 === 92);
},
- getRoot$1: function(path) {
- var root = this._getRoot$1(path);
- return root == null ? this.getRelativeRoot$1(path) : root;
- },
- getRelativeRoot$1: function(path) {
- var t1, t2;
+ rootLength$1: function(path) {
+ var t1, index;
t1 = J.getInterceptor$asx(path);
if (t1.get$isEmpty(path) === true)
- return;
- t1 = t1.codeUnitAt$1(path, 0);
+ return 0;
+ if (t1.codeUnitAt$1(path, 0) === 47)
+ return 1;
+ if (C.JSString_methods.codeUnitAt$1(path, 0) === 92) {
+ t1 = path.length;
+ if (t1 < 2 || C.JSString_methods.codeUnitAt$1(path, 1) !== 92)
+ return 1;
+ index = C.JSString_methods.indexOf$2(path, "\\", 2);
+ if (index > 0) {
+ index = C.JSString_methods.indexOf$2(path, "\\", index + 1);
+ if (index > 0)
+ return index;
+ }
+ return t1;
+ }
+ if (path.length < 3)
+ return 0;
+ t1 = C.JSString_methods.codeUnitAt$1(path, 0);
+ if (!(t1 >= 65 && t1 <= 90))
+ t1 = t1 >= 97 && t1 <= 122;
+ else
+ t1 = true;
+ if (!t1)
+ return 0;
+ if (C.JSString_methods.codeUnitAt$1(path, 1) !== 58)
+ return 0;
+ t1 = C.JSString_methods.codeUnitAt$1(path, 2);
if (!(t1 === 47 || t1 === 92))
- return;
- t1 = path.length;
- if (t1 > 1) {
- t2 = C.JSString_methods.codeUnitAt$1(path, 1);
- t2 = t2 === 47 || t2 === 92;
- } else
- t2 = false;
- if (t2)
- return;
- if (0 >= t1)
- return H.ioore(path, 0);
- return path[0];
+ return 0;
+ return 3;
+ },
+ isRootRelative$1: function(path) {
+ return this.rootLength$1(path) === 1;
},
pathFromUri$1: function(uri) {
var t1, path;
@@ -12604,7 +12760,7 @@ var dart = [
var parsed, t1, rootParts, t2;
parsed = Q.ParsedPath_ParsedPath$parse(path, this);
if (J.startsWith$1$s(parsed.root, "\\\\")) {
- t1 = parsed.root.split("\\");
+ t1 = J.split$1$s(parsed.root, "\\");
rootParts = H.setRuntimeTypeInfo(new H.WhereIterable(t1, new T.WindowsStyle_absolutePathToUri_closure()), [H.getTypeArgumentByIndex(t1, 0)]);
C.JSArray_methods.insert$2(parsed.parts, 0, rootParts.get$last(rootParts));
if (parsed.get$hasTrailingSeparator())
@@ -12614,49 +12770,11 @@ var dart = [
if (parsed.parts.length === 0 || parsed.get$hasTrailingSeparator())
parsed.parts.push("");
t1 = parsed.parts;
- t2 = parsed.root;
- t2.toString;
- H.checkString("");
- t2 = H.stringReplaceAllUnchecked(t2, "/", "");
+ t2 = J.replaceAll$2$s(parsed.root, "/", "");
H.checkString("");
C.JSArray_methods.insert$2(t1, 0, H.stringReplaceAllUnchecked(t2, "\\", ""));
return P.Uri_Uri(null, null, null, parsed.parts, null, null, null, "file", "");
}
- },
- _getRoot$1: function(path) {
- var t1, start;
- t1 = J.getInterceptor$asx(path);
- if (J.$lt$n(t1.get$length(path), 3))
- return;
- if (N.isAlphabetic(t1.codeUnitAt$1(path, 0))) {
- if (C.JSString_methods.codeUnitAt$1(path, 1) !== 58)
- return;
- t1 = C.JSString_methods.codeUnitAt$1(path, 2);
- if (!(t1 === 47 || t1 === 92))
- return;
- return C.JSString_methods.substring$2(path, 0, 3);
- }
- if (!C.JSString_methods.startsWith$1(path, "\\\\"))
- return;
- t1 = path.length;
- start = 2;
- while (true) {
- if (!(start < t1 && C.JSString_methods.codeUnitAt$1(path, start) !== 92))
- break;
- ++start;
- }
- if (start === 2 || start === t1)
- return;
- ++start;
- if (C.JSString_methods.codeUnitAt$1(path, start) === 92)
- return;
- ++start;
- while (true) {
- if (!(start < t1 && C.JSString_methods.codeUnitAt$1(path, start) !== 92))
- break;
- ++start;
- }
- return C.JSString_methods.substring$2(path, 0, start);
}
},
WindowsStyle_absolutePathToUri_closure: {
@@ -12666,18 +12784,7 @@ var dart = [
}
}
}],
-["path.utils", "package:path/src/utils.dart", , N, {
- "^": "",
- isAlphabetic: function($char) {
- var t1;
- if (!($char >= 65 && $char <= 90))
- t1 = $char >= 97 && $char <= 122;
- else
- t1 = true;
- return t1;
- }
-}],
-["stack_trace.src.utils", "package:stack_trace/src/utils.dart", , N, {
+["stack_trace.src.utils", "package:stack_trace/src/utils.dart", , N, {
"^": "",
padRight: function(string, $length) {
var t1, t2, i;
@@ -12691,6 +12798,255 @@ var dart = [
return t2.charCodeAt(0) == 0 ? t2 : t2;
}
}],
+["test.multi_channel", "package:test/src/util/multi_channel.dart", , V, {
+ "^": "",
+ _MultiChannel: {
+ "^": "StreamChannelMixin;_innerStream,_innerSink,_innerStreamSubscription,_streamController,_sinkController,_streamControllers,_sinkControllers,_nextId",
+ virtualChannel$1: function(id) {
+ var t1, t2, inputId, t3, streamController, sinkController;
+ t1 = {};
+ if (this._innerStream == null)
+ throw H.wrapException(P.StateError$("The underlying channel is closed."));
+ t1._captured_inputId_0 = null;
+ t1._captured_outputId_1 = null;
+ if (id != null) {
+ t1._captured_inputId_0 = id;
+ t1._captured_outputId_1 = H.intTypeCast(id) + 1;
+ t2 = id;
+ } else {
+ t2 = this._nextId;
+ inputId = t2 + 1;
+ t1._captured_inputId_0 = inputId;
+ t1._captured_outputId_1 = t2;
+ this._nextId = t2 + 2;
+ t2 = inputId;
+ }
+ t3 = this._streamControllers;
+ if (t3.containsKey$1(t2))
+ throw H.wrapException(P.ArgumentError$("A virtual channel with id " + H.S(id) + " already exists."));
+ streamController = P.StreamController_StreamController(null, null, null, null, true, null);
+ sinkController = P.StreamController_StreamController(null, null, null, null, true, null);
+ t3.$indexSet(0, t1._captured_inputId_0, streamController);
+ this._sinkControllers.$indexSet(0, t1._captured_inputId_0, sinkController);
+ H.setRuntimeTypeInfo(new P._ControllerStream(sinkController), [null]).listen$2$onDone(new V._MultiChannel_virtualChannel_closure(t1, this), new V._MultiChannel_virtualChannel_closure0(t1, this));
+ return new V.VirtualChannel(this, t1._captured_outputId_1, H.setRuntimeTypeInfo(new P._ControllerStream(streamController), [null]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(sinkController), [H.getRuntimeTypeArgument(sinkController, "_StreamController", 0)]));
+ },
+ _closeChannel$2: function(inputId, outputId) {
+ var t1, t2;
+ t1 = this._streamControllers;
+ J.close$0$x(t1.remove$1(0, inputId));
+ J.close$0$x(this._sinkControllers.remove$1(0, inputId));
+ t2 = this._innerSink;
+ if (t2 == null)
+ return;
+ t2 = t2._async$_target;
+ if (t2._state >= 4)
+ H.throwExpression(t2._badEventState$0());
+ t2._async$_add$1([outputId]);
+ if (t1.__js_helper$_length === 0)
+ this._closeInnerChannel$0();
+ },
+ _closeInnerChannel$0: [function() {
+ this._innerSink._async$_target.close$0(0);
+ this._innerStreamSubscription.cancel$0();
+ this._innerStream = null;
+ this._innerSink = null;
+ for (var t1 = this._sinkControllers, t1 = t1.get$values(t1), t1 = P.List_List$from(t1, true, H.getRuntimeTypeArgument(t1, "IterableBase", 0)), t1 = new J.ArrayIterator(t1, t1.length, 0, null); t1.moveNext$0();)
+ J.close$0$x(t1.__interceptors$_current);
+ }, "call$0", "get$_closeInnerChannel", 0, 0, 1],
+ _MultiChannel$2: function(_innerStream, _innerSink) {
+ var t1, t2;
+ t1 = this._streamController;
+ this._streamControllers.$indexSet(0, 0, t1);
+ t2 = this._sinkController;
+ this._sinkControllers.$indexSet(0, 0, t2);
+ H.setRuntimeTypeInfo(new P._ControllerStream(t2), [null]).listen$2$onDone(new V._MultiChannel_closure(this), new V._MultiChannel_closure0(this));
+ this._innerStreamSubscription = this._innerStream.listen$3$onDone$onError(new V._MultiChannel_closure1(this), this.get$_closeInnerChannel(), t1.get$addError());
+ },
+ static: {_MultiChannel$: function(_innerStream, _innerSink) {
+ var t1 = new V._MultiChannel(_innerStream, _innerSink, null, P.StreamController_StreamController(null, null, null, null, true, null), P.StreamController_StreamController(null, null, null, null, true, null), P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, P.StreamController), P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, P.StreamController), 1);
+ t1._MultiChannel$2(_innerStream, _innerSink);
+ return t1;
+ }}
+ },
+ _MultiChannel_closure: {
+ "^": "Closure:2;_multi_channel$_captured_this_0",
+ call$1: function(message) {
+ var t1 = this._multi_channel$_captured_this_0._innerSink._async$_target;
+ if (t1._state >= 4)
+ H.throwExpression(t1._badEventState$0());
+ t1._async$_add$1([0, message]);
+ return;
+ }
+ },
+ _MultiChannel_closure0: {
+ "^": "Closure:0;_multi_channel$_captured_this_1",
+ call$0: function() {
+ return this._multi_channel$_captured_this_1._closeChannel$2(0, 0);
+ }
+ },
+ _MultiChannel_closure1: {
+ "^": "Closure:2;_multi_channel$_captured_this_2",
+ call$1: function(message) {
+ var t1, id, t2, sink;
+ t1 = J.getInterceptor$asx(message);
+ id = t1.$index(message, 0);
+ t2 = this._multi_channel$_captured_this_2;
+ sink = t2._streamControllers.$index(0, id);
+ if (sink == null)
+ return;
+ if (J.$gt$n(t1.get$length(message), 1)) {
+ J.add$1$ax(sink, t1.$index(message, 1));
+ return;
+ }
+ J.close$0$x(t2._sinkControllers.$index(0, id));
+ }
+ },
+ _MultiChannel_virtualChannel_closure: {
+ "^": "Closure:2;_multi_channel$_box_0,_multi_channel$_captured_this_1",
+ call$1: function(message) {
+ var t1, t2;
+ t1 = this._multi_channel$_captured_this_1._innerSink;
+ t2 = this._multi_channel$_box_0._captured_outputId_1;
+ t1 = t1._async$_target;
+ if (t1._state >= 4)
+ H.throwExpression(t1._badEventState$0());
+ t1._async$_add$1([t2, message]);
+ return;
+ }
+ },
+ _MultiChannel_virtualChannel_closure0: {
+ "^": "Closure:0;_multi_channel$_box_0,_multi_channel$_captured_this_2",
+ call$0: function() {
+ var t1 = this._multi_channel$_box_0;
+ return this._multi_channel$_captured_this_2._closeChannel$2(t1._captured_inputId_0, t1._captured_outputId_1);
+ }
+ },
+ VirtualChannel: {
+ "^": "StreamChannelMixin;_parent,id,stream,sink"
+ }
+}],
+["test.runner.browser.host", "host.dart", , R, {
+ "^": "",
+ main: [function() {
+ P.runZoned(new R.main_closure(), new R.main_closure0(), null, null);
+ }, "call$0", "main$closure", 0, 0, 1],
+ _connectToServer: function() {
+ var currentUrl, t1, webSocket, inputController, outputController;
+ currentUrl = P.Uri_parse(window.location.href);
+ t1 = currentUrl._queryParameters;
+ if (t1 == null) {
+ t1 = currentUrl._query;
+ t1 = H.setRuntimeTypeInfo(new P.UnmodifiableMapView(P.Uri_splitQueryString(t1 == null ? "" : t1, C.Utf8Codec_false)), [null, null]);
+ currentUrl._queryParameters = t1;
+ }
+ webSocket = W.WebSocket_WebSocket(J.$index$asx(t1._collection$_map, "managerUrl"), null);
+ inputController = P.StreamController_StreamController(null, null, null, null, true, null);
+ t1 = H.setRuntimeTypeInfo(new W._EventStream(webSocket, "message", false), [null]);
+ H.setRuntimeTypeInfo(new W._EventStreamSubscription(0, t1._html$_target, t1._eventType, W._wrapZone(new R._connectToServer_closure(inputController)), t1._useCapture), [H.getTypeArgumentByIndex(t1, 0)])._tryResume$0();
+ outputController = P.StreamController_StreamController(null, null, null, null, true, null);
+ H.setRuntimeTypeInfo(new P._ControllerStream(outputController), [null]).listen$1(new R._connectToServer_closure0(webSocket));
+ return V._MultiChannel$(H.setRuntimeTypeInfo(new P._ControllerStream(inputController), [null]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(outputController), [H.getRuntimeTypeArgument(outputController, "_StreamController", 0)]));
+ },
+ _connectToIframe: function(url) {
+ var iframe, t1, inputController, outputController;
+ iframe = document.createElement("iframe", null);
+ t1 = J.getInterceptor$x(iframe);
+ t1.set$src(iframe, url);
+ document.body.appendChild(iframe);
+ inputController = P.StreamController_StreamController(null, null, null, null, true, null);
+ outputController = P.StreamController_StreamController(null, null, null, null, true, null);
+ t1 = t1.get$onLoad(iframe);
+ t1.get$first(t1).then$1(new R._connectToIframe_closure(iframe, inputController, outputController));
+ return H.setRuntimeTypeInfo(new A._StreamChannel(H.setRuntimeTypeInfo(new P._ControllerStream(inputController), [null]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(outputController), [H.getRuntimeTypeArgument(outputController, "_StreamController", 0)])), [null]);
+ },
+ main_closure: {
+ "^": "Closure:0;",
+ call$0: function() {
+ var serverChannel = R._connectToServer();
+ H.setRuntimeTypeInfo(new P._ControllerStream(serverChannel._streamController), [null]).listen$1(new R.main__closure(serverChannel));
+ }
+ },
+ main__closure: {
+ "^": "Closure:2;_captured_serverChannel_0",
+ call$1: function(message) {
+ var t1, suiteChannel, iframeChannel;
+ t1 = J.getInterceptor$asx(message);
+ suiteChannel = this._captured_serverChannel_0.virtualChannel$1(t1.$index(message, "channel"));
+ iframeChannel = R._connectToIframe(t1.$index(message, "url"));
+ suiteChannel.stream.pipe$1(iframeChannel.sink);
+ iframeChannel.stream.pipe$1(suiteChannel.sink);
+ }
+ },
+ main_closure0: {
+ "^": "Closure:40;",
+ call$2: function(error, stackTrace) {
+ P.print(H.S(error) + "\n" + H.S(R.Trace_Trace$from(stackTrace).get$terse()));
+ }
+ },
+ _connectToServer_closure: {
+ "^": "Closure:2;_captured_inputController_0",
+ call$1: function(message) {
+ var t1, t2;
+ t1 = this._captured_inputController_0;
+ t2 = C.JsonCodec_null_null.decode$1(J.get$data$x(message));
+ if (t1._state >= 4)
+ H.throwExpression(t1._badEventState$0());
+ t1._async$_add$1(t2);
+ return;
+ }
+ },
+ _connectToServer_closure0: {
+ "^": "Closure:2;_captured_webSocket_1",
+ call$1: function(message) {
+ return this._captured_webSocket_1.send(C.JsonCodec_null_null.encode$1(message));
+ }
+ },
+ _connectToIframe_closure: {
+ "^": "Closure:2;_captured_iframe_0,_captured_inputController_1,_captured_outputController_2",
+ call$1: function(_) {
+ var t1, t2;
+ t1 = this._captured_iframe_0;
+ J.postMessage$2$x(J.get$contentWindow$x(t1), P.LinkedHashMap_LinkedHashMap$_literal(["command", "connect"], null, null), J.get$origin$x(window.location));
+ t2 = H.setRuntimeTypeInfo(new W._EventStream(window, "message", false), [null]);
+ H.setRuntimeTypeInfo(new W._EventStreamSubscription(0, t2._html$_target, t2._eventType, W._wrapZone(new R._connectToIframe__closure(t1, this._captured_inputController_1)), t2._useCapture), [H.getTypeArgumentByIndex(t2, 0)])._tryResume$0();
+ H.setRuntimeTypeInfo(new P._ControllerStream(this._captured_outputController_2), [null]).listen$1(new R._connectToIframe__closure0(t1));
+ }
+ },
+ _connectToIframe__closure: {
+ "^": "Closure:2;_captured_iframe_3,_captured_inputController_4",
+ call$1: function(message) {
+ var t1, t2;
+ t1 = J.getInterceptor$x(message);
+ if (t1.get$origin(message) !== J.get$origin$x(window.location))
+ return;
+ if (!J.$eq(J.$index$asx(t1.get$data(message), "href"), this._captured_iframe_3.src))
+ return;
+ message.stopPropagation();
+ t1 = this._captured_inputController_4;
+ t2 = J.$index$asx(P.convertNativeToDart_AcceptStructuredClone(message.data, true), "data");
+ if (t1._state >= 4)
+ H.throwExpression(t1._badEventState$0());
+ t1._async$_add$1(t2);
+ }
+ },
+ _connectToIframe__closure0: {
+ "^": "Closure:2;_captured_iframe_5",
+ call$1: function(message) {
+ return J.postMessage$2$x(W._convertNativeToDart_Window(this._captured_iframe_5.contentWindow), message, J.get$origin$x(window.location));
+ }
+ }
+},
+1],
+["test.stream_channel", "package:test/src/util/stream_channel.dart", , A, {
+ "^": "",
+ _StreamChannel: {
+ "^": "StreamChannelMixin;stream,sink"
+ },
+ StreamChannelMixin: {
+ "^": "Object;"
+ }
+}],
["trace", "package:stack_trace/src/trace.dart", , R, {
"^": "",
Trace: {
@@ -12699,19 +13055,24 @@ var dart = [
return this.foldFrames$2$terse(new R.Trace_terse_closure(), true);
},
foldFrames$2$terse: function(predicate, terse) {
- var newFrames, t1, frame;
+ var t1, newFrames, t2, frame;
+ t1 = {};
+ t1._captured_predicate_0 = predicate;
if (terse)
- predicate = new R.Trace_foldFrames_closure(predicate);
+ t1._captured_predicate_0 = new R.Trace_foldFrames_closure(predicate);
newFrames = [];
- for (t1 = this.frames, t1 = t1.get$reversed(t1), t1 = new H.ListIterator(t1, t1.get$length(t1), 0, null); t1.moveNext$0();) {
- frame = t1._current;
- if (predicate.call$1(frame) !== true)
+ for (t2 = this.frames, t2 = t2.get$reversed(t2), t2 = new H.ListIterator(t2, t2.get$length(t2), 0, null); t2.moveNext$0();) {
+ frame = t2._current;
+ if (t1._captured_predicate_0.call$1(frame) !== true)
newFrames.push(frame);
- else if (newFrames.length === 0 || predicate.call$1(C.JSArray_methods.get$last(newFrames)) !== true)
+ else if (newFrames.length === 0 || t1._captured_predicate_0.call$1(C.JSArray_methods.get$last(newFrames)) !== true)
newFrames.push(new S.Frame(frame.get$uri(), frame.line, frame.column, frame.member));
}
- if (terse)
- newFrames = H.setRuntimeTypeInfo(new H.MappedListIterable(newFrames, new R.Trace_foldFrames_closure0()), [null, null]).toList$0(0);
+ if (terse) {
+ newFrames = H.setRuntimeTypeInfo(new H.MappedListIterable(newFrames, new R.Trace_foldFrames_closure0(t1)), [null, null]).toList$0(0);
+ if (C.JSArray_methods.get$first(newFrames).get$isCore() && newFrames.length > 1)
+ C.JSArray_methods.removeAt$1(newFrames, 0);
+ }
return new R.Trace(H.setRuntimeTypeInfo(new P.UnmodifiableListView(H.setRuntimeTypeInfo(new H.ReversedListIterable(newFrames), [H.getTypeArgumentByIndex(newFrames, 0)]).toList$0(0)), [S.Frame]));
},
toString$0: function(_) {
@@ -12773,9 +13134,9 @@ var dart = [
}}
},
Trace_Trace$from_closure: {
- "^": "Closure:0;trace_0",
+ "^": "Closure:0;_captured_trace_0",
call$0: function() {
- return R.Trace_Trace$parse(J.toString$0(this.trace_0));
+ return R.Trace_Trace$parse(J.toString$0(this._captured_trace_0));
}
},
Trace$parseVM_closure: {
@@ -12898,9 +13259,9 @@ var dart = [
}
},
Trace_foldFrames_closure: {
- "^": "Closure:2;oldPredicate_0",
+ "^": "Closure:2;_captured_oldPredicate_1",
call$1: function(frame) {
- if (this.oldPredicate_0.call$1(frame) === true)
+ if (this._captured_oldPredicate_1.call$1(frame) === true)
return true;
if (frame.get$isCore())
return true;
@@ -12912,13 +13273,12 @@ var dart = [
}
},
Trace_foldFrames_closure0: {
- "^": "Closure:2;",
+ "^": "Closure:2;_trace$_box_0",
call$1: function(frame) {
var t1, t2;
- if (!frame.get$isCore())
+ if (this._trace$_box_0._captured_predicate_0.call$1(frame) !== true)
return frame;
- t1 = frame.uri;
- t1 = $.get$context().prettyUri$1(t1);
+ t1 = frame.get$library();
t2 = $.get$_terseRegExp();
H.checkString("");
return new S.Frame(P.Uri_parse(H.stringReplaceAllUnchecked(t1, t2, "")), null, null, frame.member);
@@ -12931,263 +13291,14 @@ var dart = [
}
},
Trace_toString_closure: {
- "^": "Closure:2;longest_0",
+ "^": "Closure:2;_captured_longest_0",
call$1: function(frame) {
- return H.S(N.padRight(J.get$location$x(frame), this.longest_0)) + " " + H.S(frame.get$member()) + "\n";
+ return H.S(N.padRight(J.get$location$x(frame), this._captured_longest_0)) + " " + H.S(frame.get$member()) + "\n";
}
}
}],
-["unittest.multi_channel", "package:unittest/src/util/multi_channel.dart", , K, {
- "^": "",
- _MultiChannel: {
- "^": "StreamChannelMixin;_innerStream,_innerSink,_innerStreamSubscription,_streamController,_sinkController,_streamControllers,_sinkControllers,_nextId",
- virtualChannel$1: function(id) {
- var t1, t2, inputId, t3, streamController, sinkController;
- t1 = {};
- if (this._innerStream == null)
- throw H.wrapException(P.StateError$("The underlying channel is closed."));
- t1.inputId_0 = null;
- t1.outputId_1 = null;
- if (id != null) {
- t1.inputId_0 = id;
- t1.outputId_1 = H.intTypeCast(id) + 1;
- t2 = id;
- } else {
- t2 = this._nextId;
- inputId = t2 + 1;
- t1.inputId_0 = inputId;
- t1.outputId_1 = t2;
- this._nextId = t2 + 2;
- t2 = inputId;
- }
- t3 = this._streamControllers;
- if (t3.containsKey$1(t2))
- throw H.wrapException(P.ArgumentError$("A virtual channel with id " + H.S(id) + " already exists."));
- streamController = P.StreamController_StreamController(null, null, null, null, true, null);
- sinkController = P.StreamController_StreamController(null, null, null, null, true, null);
- t3.$indexSet(0, t1.inputId_0, streamController);
- this._sinkControllers.$indexSet(0, t1.inputId_0, sinkController);
- H.setRuntimeTypeInfo(new P._ControllerStream(sinkController), [null]).listen$2$onDone(new K._MultiChannel_virtualChannel_closure(t1, this), new K._MultiChannel_virtualChannel_closure0(t1, this));
- return new K.VirtualChannel(this, t1.outputId_1, H.setRuntimeTypeInfo(new P._ControllerStream(streamController), [null]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(sinkController), [H.getRuntimeTypeArgument(sinkController, "_StreamController", 0)]));
- },
- _closeChannel$2: function(inputId, outputId) {
- var t1, t2;
- t1 = this._streamControllers;
- J.close$0$x(t1.remove$1(0, inputId));
- J.close$0$x(this._sinkControllers.remove$1(0, inputId));
- t2 = this._innerSink;
- if (t2 == null)
- return;
- t2 = t2._async$_target;
- if (t2._state >= 4)
- H.throwExpression(t2._badEventState$0());
- t2._async$_add$1([outputId]);
- if (t1.__js_helper$_length === 0)
- this._closeInnerChannel$0();
- },
- _closeInnerChannel$0: [function() {
- this._innerSink._async$_target.close$0(0);
- this._innerStreamSubscription.cancel$0();
- this._innerStream = null;
- this._innerSink = null;
- for (var t1 = this._sinkControllers, t1 = t1.get$values(t1), t1 = P.List_List$from(t1, true, H.getRuntimeTypeArgument(t1, "IterableBase", 0)), t1 = new H.ListIterator(t1, t1.length, 0, null); t1.moveNext$0();)
- J.close$0$x(t1._current);
- }, "call$0", "get$_closeInnerChannel", 0, 0, 1],
- _MultiChannel$2: function(_innerStream, _innerSink) {
- var t1, t2;
- t1 = this._streamController;
- this._streamControllers.$indexSet(0, 0, t1);
- t2 = this._sinkController;
- this._sinkControllers.$indexSet(0, 0, t2);
- H.setRuntimeTypeInfo(new P._ControllerStream(t2), [null]).listen$2$onDone(new K._MultiChannel_closure(this), new K._MultiChannel_closure0(this));
- this._innerStreamSubscription = this._innerStream.listen$3$onDone$onError(new K._MultiChannel_closure1(this), this.get$_closeInnerChannel(), t1.get$addError());
- },
- static: {_MultiChannel$: function(_innerStream, _innerSink) {
- var t1 = new K._MultiChannel(_innerStream, _innerSink, null, P.StreamController_StreamController(null, null, null, null, true, null), P.StreamController_StreamController(null, null, null, null, true, null), P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, P.StreamController), P.LinkedHashMap_LinkedHashMap(null, null, null, P.$int, P.StreamController), 1);
- t1._MultiChannel$2(_innerStream, _innerSink);
- return t1;
- }}
- },
- _MultiChannel_closure: {
- "^": "Closure:2;this_0",
- call$1: function(message) {
- var t1 = this.this_0._innerSink._async$_target;
- if (t1._state >= 4)
- H.throwExpression(t1._badEventState$0());
- t1._async$_add$1([0, message]);
- return;
- }
- },
- _MultiChannel_closure0: {
- "^": "Closure:0;this_1",
- call$0: function() {
- return this.this_1._closeChannel$2(0, 0);
- }
- },
- _MultiChannel_closure1: {
- "^": "Closure:2;this_2",
- call$1: function(message) {
- var t1, id, t2, sink;
- t1 = J.getInterceptor$asx(message);
- id = t1.$index(message, 0);
- t2 = this.this_2;
- sink = t2._streamControllers.$index(0, id);
- if (sink == null)
- return;
- if (J.$gt$n(t1.get$length(message), 1)) {
- J.add$1$ax(sink, t1.$index(message, 1));
- return;
- }
- J.close$0$x(t2._sinkControllers.$index(0, id));
- }
- },
- _MultiChannel_virtualChannel_closure: {
- "^": "Closure:2;box_0,this_1",
- call$1: function(message) {
- var t1, t2;
- t1 = this.this_1._innerSink;
- t2 = this.box_0.outputId_1;
- t1 = t1._async$_target;
- if (t1._state >= 4)
- H.throwExpression(t1._badEventState$0());
- t1._async$_add$1([t2, message]);
- return;
- }
- },
- _MultiChannel_virtualChannel_closure0: {
- "^": "Closure:0;box_0,this_2",
- call$0: function() {
- var t1 = this.box_0;
- return this.this_2._closeChannel$2(t1.inputId_0, t1.outputId_1);
- }
- },
- VirtualChannel: {
- "^": "StreamChannelMixin;_parent,id,stream,sink"
- }
-}],
-["unittest.runner.browser.host", "host.dart", , O, {
- "^": "",
- main: [function() {
- P.runZoned(new O.main_closure(), new O.main_closure0(), null, null);
- }, "call$0", "main$closure", 0, 0, 1],
- _connectToServer: function() {
- var currentUrl, t1, webSocket, inputController, outputController;
- currentUrl = P.Uri_parse(window.location.href);
- t1 = currentUrl._queryParameters;
- if (t1 == null) {
- t1 = currentUrl._query;
- t1 = H.setRuntimeTypeInfo(new P.UnmodifiableMapView(P.Uri_splitQueryString(t1 == null ? "" : t1, C.Utf8Codec_false)), [null, null]);
- currentUrl._queryParameters = t1;
- }
- webSocket = W.WebSocket_WebSocket(J.$index$asx(t1._collection$_map, "managerUrl"), null);
- inputController = P.StreamController_StreamController(null, null, null, null, true, null);
- t1 = H.setRuntimeTypeInfo(new W._EventStream(webSocket, "message", false), [null]);
- H.setRuntimeTypeInfo(new W._EventStreamSubscription(0, t1._html$_target, t1._eventType, W._wrapZone(new O._connectToServer_closure(inputController)), t1._useCapture), [H.getTypeArgumentByIndex(t1, 0)])._tryResume$0();
- outputController = P.StreamController_StreamController(null, null, null, null, true, null);
- H.setRuntimeTypeInfo(new P._ControllerStream(outputController), [null]).listen$1(new O._connectToServer_closure0(webSocket));
- return K._MultiChannel$(H.setRuntimeTypeInfo(new P._ControllerStream(inputController), [null]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(outputController), [H.getRuntimeTypeArgument(outputController, "_StreamController", 0)]));
- },
- _connectToIframe: function(url) {
- var iframe, t1, inputController, outputController;
- iframe = document.createElement("iframe", null);
- t1 = J.getInterceptor$x(iframe);
- t1.set$src(iframe, url);
- document.body.appendChild(iframe);
- inputController = P.StreamController_StreamController(null, null, null, null, true, null);
- outputController = P.StreamController_StreamController(null, null, null, null, true, null);
- t1 = t1.get$onLoad(iframe);
- t1.get$first(t1).then$1(new O._connectToIframe_closure(iframe, inputController, outputController));
- return H.setRuntimeTypeInfo(new X._StreamChannel(H.setRuntimeTypeInfo(new P._ControllerStream(inputController), [null]), H.setRuntimeTypeInfo(new P._StreamSinkWrapper(outputController), [H.getRuntimeTypeArgument(outputController, "_StreamController", 0)])), [null]);
- },
- main_closure: {
- "^": "Closure:0;",
- call$0: function() {
- var serverChannel = O._connectToServer();
- H.setRuntimeTypeInfo(new P._ControllerStream(serverChannel._streamController), [null]).listen$1(new O.main__closure(serverChannel));
- }
- },
- main__closure: {
- "^": "Closure:2;serverChannel_0",
- call$1: function(message) {
- var t1, suiteChannel, iframeChannel;
- t1 = J.getInterceptor$asx(message);
- suiteChannel = this.serverChannel_0.virtualChannel$1(t1.$index(message, "channel"));
- iframeChannel = O._connectToIframe(t1.$index(message, "url"));
- suiteChannel.stream.pipe$1(iframeChannel.sink);
- iframeChannel.stream.pipe$1(suiteChannel.sink);
- }
- },
- main_closure0: {
- "^": "Closure:15;",
- call$2: function(error, stackTrace) {
- P.print(H.S(error) + "\n" + H.S(R.Trace_Trace$from(stackTrace).get$terse()));
- }
- },
- _connectToServer_closure: {
- "^": "Closure:2;inputController_0",
- call$1: function(message) {
- var t1, t2;
- t1 = this.inputController_0;
- t2 = C.JsonCodec_null_null.decode$1(J.get$data$x(message));
- if (t1._state >= 4)
- H.throwExpression(t1._badEventState$0());
- t1._async$_add$1(t2);
- return;
- }
- },
- _connectToServer_closure0: {
- "^": "Closure:2;webSocket_1",
- call$1: function(message) {
- return this.webSocket_1.send(C.JsonCodec_null_null.encode$1(message));
- }
- },
- _connectToIframe_closure: {
- "^": "Closure:2;iframe_0,inputController_1,outputController_2",
- call$1: function(_) {
- var t1, t2;
- t1 = this.iframe_0;
- J.postMessage$2$x(J.get$contentWindow$x(t1), P.LinkedHashMap_LinkedHashMap$_literal(["command", "connect"], null, null), J.get$origin$x(window.location));
- t2 = H.setRuntimeTypeInfo(new W._EventStream(window, "message", false), [null]);
- H.setRuntimeTypeInfo(new W._EventStreamSubscription(0, t2._html$_target, t2._eventType, W._wrapZone(new O._connectToIframe__closure(t1, this.inputController_1)), t2._useCapture), [H.getTypeArgumentByIndex(t2, 0)])._tryResume$0();
- H.setRuntimeTypeInfo(new P._ControllerStream(this.outputController_2), [null]).listen$1(new O._connectToIframe__closure0(t1));
- }
- },
- _connectToIframe__closure: {
- "^": "Closure:2;iframe_3,inputController_4",
- call$1: function(message) {
- var t1, t2;
- t1 = J.getInterceptor$x(message);
- if (t1.get$origin(message) !== J.get$origin$x(window.location))
- return;
- if (!J.$eq(J.$index$asx(t1.get$data(message), "href"), this.iframe_3.src))
- return;
- message.stopPropagation();
- t1 = this.inputController_4;
- t2 = J.$index$asx(P.convertNativeToDart_AcceptStructuredClone(message.data, true), "data");
- if (t1._state >= 4)
- H.throwExpression(t1._badEventState$0());
- t1._async$_add$1(t2);
- }
- },
- _connectToIframe__closure0: {
- "^": "Closure:2;iframe_5",
- call$1: function(message) {
- return J.postMessage$2$x(W._convertNativeToDart_Window(this.iframe_5.contentWindow), message, J.get$origin$x(window.location));
- }
- }
-},
-1],
-["unittest.stream_channel", "package:unittest/src/util/stream_channel.dart", , X, {
- "^": "",
- _StreamChannel: {
- "^": "StreamChannelMixin;stream,sink"
- },
- StreamChannelMixin: {
- "^": "Object;"
- }
-}],
];
-parseReflectionData(dart);
+setupProgram(dart);
// getInterceptor methods
J.getInterceptor = function(receiver) {
if (typeof receiver == "number") {
@@ -13414,6 +13525,9 @@ J.substring$1$s = function(receiver, a0) {
J.substring$2$s = function(receiver, a0, a1) {
return J.getInterceptor$s(receiver).substring$2(receiver, a0, a1);
};
+J.toLowerCase$0$s = function(receiver) {
+ return J.getInterceptor$s(receiver).toLowerCase$0(receiver);
+};
J.toRadixString$1$n = function(receiver, a0) {
return J.getInterceptor$n(receiver).toRadixString$1(receiver, a0);
};
@@ -13649,26 +13763,26 @@ $.Device__isIE = null;
$.Device__isFirefox = null;
$.Device__isWebKit = null;
$.Device__cachedCssPrefix = null;
-Isolate.$lazy($, "thisScript", "IsolateNatives_thisScript", "get$IsolateNatives_thisScript", function() {
+Isolate.$lazy("IsolateNatives_thisScript", "get$IsolateNatives_thisScript", function() {
return H.IsolateNatives_computeThisScript();
-});
-Isolate.$lazy($, "workerIds", "IsolateNatives_workerIds", "get$IsolateNatives_workerIds", function() {
+}, "thisScript");
+Isolate.$lazy("IsolateNatives_workerIds", "get$IsolateNatives_workerIds", function() {
return new P.Expando(null);
-});
-Isolate.$lazy($, "noSuchMethodPattern", "TypeErrorDecoder_noSuchMethodPattern", "get$TypeErrorDecoder_noSuchMethodPattern", function() {
+}, "workerIds");
+Isolate.$lazy("TypeErrorDecoder_noSuchMethodPattern", "get$TypeErrorDecoder_noSuchMethodPattern", function() {
return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({toString: function() {
return "$receiver$";
}}));
-});
-Isolate.$lazy($, "notClosurePattern", "TypeErrorDecoder_notClosurePattern", "get$TypeErrorDecoder_notClosurePattern", function() {
+}, "noSuchMethodPattern");
+Isolate.$lazy("TypeErrorDecoder_notClosurePattern", "get$TypeErrorDecoder_notClosurePattern", function() {
return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn({$method$: null, toString: function() {
return "$receiver$";
}}));
-});
-Isolate.$lazy($, "nullCallPattern", "TypeErrorDecoder_nullCallPattern", "get$TypeErrorDecoder_nullCallPattern", function() {
+}, "notClosurePattern");
+Isolate.$lazy("TypeErrorDecoder_nullCallPattern", "get$TypeErrorDecoder_nullCallPattern", function() {
return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn(null));
-});
-Isolate.$lazy($, "nullLiteralCallPattern", "TypeErrorDecoder_nullLiteralCallPattern", "get$TypeErrorDecoder_nullLiteralCallPattern", function() {
+}, "nullCallPattern");
+Isolate.$lazy("TypeErrorDecoder_nullLiteralCallPattern", "get$TypeErrorDecoder_nullLiteralCallPattern", function() {
return H.TypeErrorDecoder_extractPattern(function() {
var $argumentsExpr$ = '$arguments$';
try {
@@ -13677,11 +13791,11 @@ Isolate.$lazy($, "nullLiteralCallPattern", "TypeErrorDecoder_nullLiteralCallPatt
return e.message;
}
}());
-});
-Isolate.$lazy($, "undefinedCallPattern", "TypeErrorDecoder_undefinedCallPattern", "get$TypeErrorDecoder_undefinedCallPattern", function() {
+}, "nullLiteralCallPattern");
+Isolate.$lazy("TypeErrorDecoder_undefinedCallPattern", "get$TypeErrorDecoder_undefinedCallPattern", function() {
return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn(void 0));
-});
-Isolate.$lazy($, "undefinedLiteralCallPattern", "TypeErrorDecoder_undefinedLiteralCallPattern", "get$TypeErrorDecoder_undefinedLiteralCallPattern", function() {
+}, "undefinedCallPattern");
+Isolate.$lazy("TypeErrorDecoder_undefinedLiteralCallPattern", "get$TypeErrorDecoder_undefinedLiteralCallPattern", function() {
return H.TypeErrorDecoder_extractPattern(function() {
var $argumentsExpr$ = '$arguments$';
try {
@@ -13690,11 +13804,11 @@ Isolate.$lazy($, "undefinedLiteralCallPattern", "TypeErrorDecoder_undefinedLiter
return e.message;
}
}());
-});
-Isolate.$lazy($, "nullPropertyPattern", "TypeErrorDecoder_nullPropertyPattern", "get$TypeErrorDecoder_nullPropertyPattern", function() {
+}, "undefinedLiteralCallPattern");
+Isolate.$lazy("TypeErrorDecoder_nullPropertyPattern", "get$TypeErrorDecoder_nullPropertyPattern", function() {
return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOn(null));
-});
-Isolate.$lazy($, "nullLiteralPropertyPattern", "TypeErrorDecoder_nullLiteralPropertyPattern", "get$TypeErrorDecoder_nullLiteralPropertyPattern", function() {
+}, "nullPropertyPattern");
+Isolate.$lazy("TypeErrorDecoder_nullLiteralPropertyPattern", "get$TypeErrorDecoder_nullLiteralPropertyPattern", function() {
return H.TypeErrorDecoder_extractPattern(function() {
try {
null.$method$;
@@ -13702,11 +13816,11 @@ Isolate.$lazy($, "nullLiteralPropertyPattern", "TypeErrorDecoder_nullLiteralProp
return e.message;
}
}());
-});
-Isolate.$lazy($, "undefinedPropertyPattern", "TypeErrorDecoder_undefinedPropertyPattern", "get$TypeErrorDecoder_undefinedPropertyPattern", function() {
+}, "nullLiteralPropertyPattern");
+Isolate.$lazy("TypeErrorDecoder_undefinedPropertyPattern", "get$TypeErrorDecoder_undefinedPropertyPattern", function() {
return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErrorOn(void 0));
-});
-Isolate.$lazy($, "undefinedLiteralPropertyPattern", "TypeErrorDecoder_undefinedLiteralPropertyPattern", "get$TypeErrorDecoder_undefinedLiteralPropertyPattern", function() {
+}, "undefinedPropertyPattern");
+Isolate.$lazy("TypeErrorDecoder_undefinedLiteralPropertyPattern", "get$TypeErrorDecoder_undefinedLiteralPropertyPattern", function() {
return H.TypeErrorDecoder_extractPattern(function() {
try {
(void 0).$method$;
@@ -13714,134 +13828,158 @@ Isolate.$lazy($, "undefinedLiteralPropertyPattern", "TypeErrorDecoder_undefinedL
return e.message;
}
}());
-});
-Isolate.$lazy($, "scheduleImmediateClosure", "_AsyncRun_scheduleImmediateClosure", "get$_AsyncRun_scheduleImmediateClosure", function() {
+}, "undefinedLiteralPropertyPattern");
+Isolate.$lazy("_AsyncRun_scheduleImmediateClosure", "get$_AsyncRun_scheduleImmediateClosure", function() {
return P._AsyncRun__initializeScheduleImmediate();
-});
-Isolate.$lazy($, "_nullFuture", "Future__nullFuture", "get$Future__nullFuture", function() {
+}, "scheduleImmediateClosure");
+Isolate.$lazy("Future__nullFuture", "get$Future__nullFuture", function() {
return P._Future$immediate(null, null);
-});
-Isolate.$lazy($, "_rootMap", "_RootZone__rootMap", "get$_RootZone__rootMap", function() {
+}, "_nullFuture");
+Isolate.$lazy("_RootZone__rootMap", "get$_RootZone__rootMap", function() {
return P.HashMap_HashMap(null, null, null, null, null);
-});
-Isolate.$lazy($, "_toStringVisiting", "IterableBase__toStringVisiting", "get$IterableBase__toStringVisiting", function() {
+}, "_rootMap");
+Isolate.$lazy("IterableBase__toStringVisiting", "get$IterableBase__toStringVisiting", function() {
return [];
-});
-Isolate.$lazy($, "_vmFrame", "_vmFrame", "get$_vmFrame", function() {
+}, "_toStringVisiting");
+Isolate.$lazy("_vmFrame", "get$_vmFrame", function() {
return P.RegExp_RegExp("^#\\d+\\s+(\\S.*) \\((.+?)((?::\\d+){0,2})\\)$", true, false);
-});
-Isolate.$lazy($, "_v8Frame", "_v8Frame", "get$_v8Frame", function() {
+}, "_vmFrame");
+Isolate.$lazy("_v8Frame", "get$_v8Frame", function() {
return P.RegExp_RegExp("^\\s*at (?:(\\S.*?)(?: \\[as [^\\]]+\\])? \\((.*)\\)|(.*))$", true, false);
-});
-Isolate.$lazy($, "_v8UrlLocation", "_v8UrlLocation", "get$_v8UrlLocation", function() {
+}, "_v8Frame");
+Isolate.$lazy("_v8UrlLocation", "get$_v8UrlLocation", function() {
return P.RegExp_RegExp("^(.*):(\\d+):(\\d+)$", true, false);
-});
-Isolate.$lazy($, "_v8EvalLocation", "_v8EvalLocation", "get$_v8EvalLocation", function() {
+}, "_v8UrlLocation");
+Isolate.$lazy("_v8EvalLocation", "get$_v8EvalLocation", function() {
return P.RegExp_RegExp("^eval at (?:\\S.*?) \\((.*)\\)(?:, .*?:\\d+:\\d+)?$", true, false);
-});
-Isolate.$lazy($, "_firefoxSafariFrame", "_firefoxSafariFrame", "get$_firefoxSafariFrame", function() {
+}, "_v8EvalLocation");
+Isolate.$lazy("_firefoxSafariFrame", "get$_firefoxSafariFrame", function() {
return P.RegExp_RegExp("^(?:([^@(/]*)(?:\\(.*\\))?((?:/[^/]*)*)(?:\\(.*\\))?@)?(.*?):(\\d*)(?::(\\d*))?$", true, false);
-});
-Isolate.$lazy($, "_friendlyFrame", "_friendlyFrame", "get$_friendlyFrame", function() {
+}, "_firefoxSafariFrame");
+Isolate.$lazy("_friendlyFrame", "get$_friendlyFrame", function() {
return P.RegExp_RegExp("^(\\S+)(?: (\\d+)(?::(\\d+))?)?\\s+([^\\d]\\S*)$", true, false);
-});
-Isolate.$lazy($, "_asyncBody", "_asyncBody", "get$_asyncBody", function() {
+}, "_friendlyFrame");
+Isolate.$lazy("_asyncBody", "get$_asyncBody", function() {
return P.RegExp_RegExp("<(<anonymous closure>|[^>]+)_async_body>", true, false);
-});
-Isolate.$lazy($, "_initialDot", "_initialDot", "get$_initialDot", function() {
+}, "_asyncBody");
+Isolate.$lazy("_initialDot", "get$_initialDot", function() {
return P.RegExp_RegExp("^\\.", true, false);
-});
-Isolate.$lazy($, "_uriRegExp", "Frame__uriRegExp", "get$Frame__uriRegExp", function() {
+}, "_initialDot");
+Isolate.$lazy("Frame__uriRegExp", "get$Frame__uriRegExp", function() {
return P.RegExp_RegExp("^[a-zA-Z][-+.a-zA-Z\\d]*://", true, false);
-});
-Isolate.$lazy($, "_windowsRegExp", "Frame__windowsRegExp", "get$Frame__windowsRegExp", function() {
+}, "_uriRegExp");
+Isolate.$lazy("Frame__windowsRegExp", "get$Frame__windowsRegExp", function() {
return P.RegExp_RegExp("^([a-zA-Z]:[\\\\/]|\\\\\\\\)", true, false);
-});
-Isolate.$lazy($, "windows", "windows", "get$windows", function() {
+}, "_windowsRegExp");
+Isolate.$lazy("windows", "get$windows", function() {
return F.Context_Context(null, $.get$Style_windows());
-});
-Isolate.$lazy($, "context", "context", "get$context", function() {
+}, "windows");
+Isolate.$lazy("context", "get$context", function() {
return new F.Context($.get$Style_platform(), null);
-});
-Isolate.$lazy($, "posix", "Style_posix", "get$Style_posix", function() {
+}, "context");
+Isolate.$lazy("Style_posix", "get$Style_posix", function() {
return new Z.PosixStyle("posix", "/", C.List_cSk, P.RegExp_RegExp("/", true, false), P.RegExp_RegExp("[^/]$", true, false), P.RegExp_RegExp("^/", true, false), null);
-});
-Isolate.$lazy($, "windows", "Style_windows", "get$Style_windows", function() {
+}, "posix");
+Isolate.$lazy("Style_windows", "get$Style_windows", function() {
return new T.WindowsStyle("windows", "\\", C.List_WnV, P.RegExp_RegExp("[/\\\\]", true, false), P.RegExp_RegExp("[^/\\\\]$", true, false), P.RegExp_RegExp("^(\\\\\\\\[^\\\\]+\\\\[^\\\\/]+|[a-zA-Z]:[/\\\\])", true, false), P.RegExp_RegExp("^[/\\\\](?![/\\\\])", true, false));
-});
-Isolate.$lazy($, "url", "Style_url", "get$Style_url", function() {
+}, "windows");
+Isolate.$lazy("Style_url", "get$Style_url", function() {
return new E.UrlStyle("url", "/", C.List_cSk, P.RegExp_RegExp("/", true, false), P.RegExp_RegExp("(^[a-zA-Z][-+.a-zA-Z\\d]*://|[^/])$", true, false), P.RegExp_RegExp("[a-zA-Z][-+.a-zA-Z\\d]*://[^/]*", true, false), P.RegExp_RegExp("^/", true, false));
-});
-Isolate.$lazy($, "platform", "Style_platform", "get$Style_platform", function() {
+}, "url");
+Isolate.$lazy("Style_platform", "get$Style_platform", function() {
return S.Style__getPlatformStyle();
-});
-Isolate.$lazy($, "_terseRegExp", "_terseRegExp", "get$_terseRegExp", function() {
+}, "platform");
+Isolate.$lazy("_terseRegExp", "get$_terseRegExp", function() {
return P.RegExp_RegExp("(-patch)?(/.*)?$", true, false);
-});
-Isolate.$lazy($, "_v8Trace", "_v8Trace", "get$_v8Trace", function() {
+}, "_terseRegExp");
+Isolate.$lazy("_v8Trace", "get$_v8Trace", function() {
return P.RegExp_RegExp("\\n ?at ", true, false);
-});
-Isolate.$lazy($, "_v8TraceLine", "_v8TraceLine", "get$_v8TraceLine", function() {
+}, "_v8Trace");
+Isolate.$lazy("_v8TraceLine", "get$_v8TraceLine", function() {
return P.RegExp_RegExp(" ?at ", true, false);
-});
-Isolate.$lazy($, "_firefoxSafariTrace", "_firefoxSafariTrace", "get$_firefoxSafariTrace", function() {
+}, "_v8TraceLine");
+Isolate.$lazy("_firefoxSafariTrace", "get$_firefoxSafariTrace", function() {
return P.RegExp_RegExp("^(([.0-9A-Za-z_$/<]|\\(.*\\))*@)?[^\\s]*:\\d*$", true, true);
-});
-Isolate.$lazy($, "_friendlyTrace", "_friendlyTrace", "get$_friendlyTrace", function() {
+}, "_firefoxSafariTrace");
+Isolate.$lazy("_friendlyTrace", "get$_friendlyTrace", function() {
return P.RegExp_RegExp("^[^\\s]+( \\d+(:\\d+)?)?[ \\t]+[^\\s]+$", true, true);
-});
+}, "_friendlyTrace");
-init.metadata = [{func: "args0"},
-{func: "void_", void: true},
-{func: "args1", args: [null]},
-{func: "dynamic__dynamic_String", args: [null, P.String]},
-{func: "dynamic__String", args: [P.String]},
-{func: "dynamic__void_", args: [{func: "void_", void: true}]},
-{func: "void__dynamic__StackTrace", void: true, args: [null], opt: [P.StackTrace]},
-{func: "dynamic__dynamic__dynamic", args: [null], opt: [null]},
-{func: "bool_", ret: P.bool},
-{func: "dynamic__bool", args: [P.bool]},
-{func: "void__Object__StackTrace", void: true, args: [P.Object], opt: [P.StackTrace]},
-{func: "void__Object_StackTrace", void: true, args: [P.Object, P.StackTrace]},
-{func: "dynamic__dynamic_StackTrace", args: [null, P.StackTrace]},
-{func: "void__dynamic_StackTrace", void: true, args: [null, P.StackTrace]},
-{func: "dynamic__Zone_ZoneDelegate_Zone_dynamic_StackTrace", args: [P.Zone, P.ZoneDelegate, P.Zone, null, P.StackTrace]},
-{func: "args2", args: [null, null]},
-{func: "dynamic__String_dynamic", args: [P.String, null]},
-{func: "int__dynamic_int", ret: P.$int, args: [null, P.$int]},
-{func: "void__int_int", void: true, args: [P.$int, P.$int]},
-{func: "dynamic__Symbol_dynamic", args: [P.Symbol, null]},
-{func: "String__int", ret: P.String, args: [P.$int]},
-{func: "bool__int", ret: P.bool, args: [P.$int]},
-{func: "int__dynamic_dynamic", ret: P.$int, args: [null, null]},
-{func: "void__String", void: true, args: [P.String]},
-{func: "void__String__dynamic", void: true, args: [P.String], opt: [null]},
-{func: "int__int_int", ret: P.$int, args: [P.$int, P.$int]},
-{func: "int__dynamic", ret: P.$int, args: [null]},
-{func: "dynamic__int", args: [P.$int]},
-{func: "dynamic__int_dynamic", args: [P.$int, null]},
-{func: "void__void_", void: true, args: [{func: "void_", void: true}]},
-{func: "void__dynamic", void: true, args: [null]},
-{func: "void__Zone_ZoneDelegate_Zone_dynamic_StackTrace", void: true, args: [P.Zone, P.ZoneDelegate, P.Zone, null, P.StackTrace]},
-{func: "dynamic__Zone_ZoneDelegate_Zone_args0", args: [P.Zone, P.ZoneDelegate, P.Zone, {func: "args0"}]},
-{func: "dynamic__Zone_ZoneDelegate_Zone_args1_dynamic", args: [P.Zone, P.ZoneDelegate, P.Zone, {func: "args1", args: [null]}, null]},
-{func: "dynamic__Zone_ZoneDelegate_Zone_args2_dynamic_dynamic", args: [P.Zone, P.ZoneDelegate, P.Zone, {func: "args2", args: [null, null]}, null, null]},
-{func: "ZoneCallback__Zone_ZoneDelegate_Zone_args0", ret: {func: "args0"}, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: "args0"}]},
-{func: "ZoneUnaryCallback__Zone_ZoneDelegate_Zone_args1", ret: {func: "args1", args: [null]}, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: "args1", args: [null]}]},
-{func: "ZoneBinaryCallback__Zone_ZoneDelegate_Zone_args2", ret: {func: "args2", args: [null, null]}, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: "args2", args: [null, null]}]},
-{func: "AsyncError__Zone_ZoneDelegate_Zone_Object_StackTrace", ret: P.AsyncError, args: [P.Zone, P.ZoneDelegate, P.Zone, P.Object, P.StackTrace]},
-{func: "void__Zone_ZoneDelegate_Zone_args0", void: true, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: "args0"}]},
-{func: "Timer__Zone_ZoneDelegate_Zone_Duration_void_", ret: P.Timer, args: [P.Zone, P.ZoneDelegate, P.Zone, P.Duration, {func: "void_", void: true}]},
-{func: "Timer__Zone_ZoneDelegate_Zone_Duration_void__Timer", ret: P.Timer, args: [P.Zone, P.ZoneDelegate, P.Zone, P.Duration, {func: "void__Timer", void: true, args: [P.Timer]}]},
-{func: "void__Zone_ZoneDelegate_Zone_String", void: true, args: [P.Zone, P.ZoneDelegate, P.Zone, P.String]},
-{func: "Zone__Zone_ZoneDelegate_Zone_ZoneSpecification_Map", ret: P.Zone, args: [P.Zone, P.ZoneDelegate, P.Zone, P.ZoneSpecification, P.Map]},
-{func: "bool__dynamic_dynamic", ret: P.bool, args: [null, null]},
-{func: "Object__dynamic", ret: P.Object, args: [null]},
-{func: "bool__Object_Object", ret: P.bool, args: [P.Object, P.Object]},
-{func: "int__Object", ret: P.$int, args: [P.Object]},
-{func: "String__String", ret: P.String, args: [P.String]},
-{func: "num__num_num", ret: P.num, args: [P.num, P.num]},
-,
+init.metadata = [,
+];
+init.types = [{func: ""},
+{func: "", void: true},
+{func: "", args: [,]},
+{func: "", args: [, P.String]},
+{func: "", args: [P.String]},
+{func: "", args: [{func: "", void: true}]},
+{func: "", void: true, args: [,], opt: [P.StackTrace]},
+{func: "", args: [,], opt: [,]},
+{func: "", ret: P.bool},
+{func: "", args: [P.bool]},
+{func: "", void: true, args: [P.Object], opt: [P.StackTrace]},
+{func: "", void: true, args: [P.Object, P.StackTrace]},
+{func: "", args: [, P.StackTrace]},
+{func: "", void: true, args: [, P.StackTrace]},
+{func: "", args: [P.Zone,, P.StackTrace]},
+{func: "", args: [P.Zone, {func: ""}]},
+{func: "", args: [P.Zone, {func: "", args: [,]},,]},
+{func: "", args: [P.Zone, {func: "", args: [,,]},,,]},
+{func: "", ret: {func: ""}, args: [P.Zone, {func: ""}]},
+{func: "", ret: {func: "", args: [,]}, args: [P.Zone, {func: "", args: [,]}]},
+{func: "", ret: {func: "", args: [,,]}, args: [P.Zone, {func: "", args: [,,]}]},
+{func: "", ret: P.AsyncError, args: [P.Zone, P.Object, P.StackTrace]},
+{func: "", void: true, args: [P.Zone, {func: ""}]},
+{func: "", ret: P.Timer, args: [P.Zone, P.Duration, {func: "", void: true}]},
+{func: "", ret: P.Timer, args: [P.Zone, P.Duration, {func: "", void: true, args: [P.Timer]}]},
+{func: "", void: true, args: [P.Zone, P.String]},
+{func: "", ret: P.Zone, args: [P.Zone, P.ZoneSpecification, P.Map]},
+{func: "", ret: P.Zone, named: {specification: P.ZoneSpecification, zoneValues: P.Map}},
+{func: "", args: [{func: ""}]},
+{func: "", args: [{func: "", args: [,]},,]},
+{func: "", args: [{func: "", args: [,,]},,,]},
+{func: "", ret: {func: ""}, args: [{func: ""}]},
+{func: "", ret: {func: "", args: [,]}, args: [{func: "", args: [,]}]},
+{func: "", ret: {func: "", args: [,,]}, args: [{func: "", args: [,,]}]},
+{func: "", ret: P.AsyncError, args: [P.Object, P.StackTrace]},
+{func: "", void: true, args: [{func: "", void: true}]},
+{func: "", ret: P.Timer, args: [P.Duration, {func: "", void: true}]},
+{func: "", ret: P.Timer, args: [P.Duration, {func: "", void: true, args: [P.Timer]}]},
+{func: "", void: true, args: [P.String]},
+{func: "", args: [P.Zone, P.ZoneDelegate, P.Zone,, P.StackTrace]},
+{func: "", args: [,,]},
+{func: "", args: [P.String,,]},
+{func: "", ret: P.$int, args: [, P.$int]},
+{func: "", void: true, args: [P.$int, P.$int]},
+{func: "", args: [P.Symbol,,]},
+{func: "", ret: P.String, args: [P.$int]},
+{func: "", ret: P.bool, args: [P.$int]},
+{func: "", ret: P.$int, args: [,,]},
+{func: "", void: true, args: [P.String], opt: [,]},
+{func: "", ret: P.$int, args: [P.$int, P.$int]},
+{func: "", ret: P.$int, args: [,]},
+{func: "", args: [P.$int]},
+{func: "", args: [P.$int,,]},
+{func: "", void: true, args: [,]},
+{func: "", void: true, args: [P.Zone, P.ZoneDelegate, P.Zone,, P.StackTrace]},
+{func: "", args: [P.Zone, P.ZoneDelegate, P.Zone, {func: ""}]},
+{func: "", args: [P.Zone, P.ZoneDelegate, P.Zone, {func: "", args: [,]},,]},
+{func: "", args: [P.Zone, P.ZoneDelegate, P.Zone, {func: "", args: [,,]},,,]},
+{func: "", ret: {func: ""}, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: ""}]},
+{func: "", ret: {func: "", args: [,]}, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: "", args: [,]}]},
+{func: "", ret: {func: "", args: [,,]}, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: "", args: [,,]}]},
+{func: "", ret: P.AsyncError, args: [P.Zone, P.ZoneDelegate, P.Zone, P.Object, P.StackTrace]},
+{func: "", void: true, args: [P.Zone, P.ZoneDelegate, P.Zone, {func: ""}]},
+{func: "", ret: P.Timer, args: [P.Zone, P.ZoneDelegate, P.Zone, P.Duration, {func: "", void: true}]},
+{func: "", ret: P.Timer, args: [P.Zone, P.ZoneDelegate, P.Zone, P.Duration, {func: "", void: true, args: [P.Timer]}]},
+{func: "", void: true, args: [P.Zone, P.ZoneDelegate, P.Zone, P.String]},
+{func: "", ret: P.Zone, args: [P.Zone, P.ZoneDelegate, P.Zone, P.ZoneSpecification, P.Map]},
+{func: "", ret: P.bool, args: [,,]},
+{func: "", ret: P.Object, args: [,]},
+{func: "", ret: P.bool, args: [P.Object, P.Object]},
+{func: "", ret: P.$int, args: [P.Object]},
+{func: "", ret: P.String, args: [P.String]},
+{func: "", ret: P.num, args: [P.num, P.num]},
];
$ = null;
Isolate = Isolate.$finishIsolateConstructor(Isolate);
@@ -13854,6 +13992,15 @@ function convertToFastObject(properties) {
return properties;
}
;
+function convertToSlowObject(properties) {
+ properties.__MAGIC_SLOW_PROPERTY = 1;
+ delete properties.__MAGIC_SLOW_PROPERTY;
+ return properties;
+}
+;
+function markerFun() {
+}
+;
A = convertToFastObject(A);
B = convertToFastObject(B);
C = convertToFastObject(C);
@@ -13888,30 +14035,31 @@ function init() {
init.interceptorsByTag = Object.create(null);
init.leafTags = Object.create(null);
init.finishedClasses = Object.create(null);
- Isolate.$lazy = function(prototype, staticName, fieldName, getterName, lazyValue) {
+ Isolate.$lazy = function(fieldName, getterName, lazyValue, staticName, prototype) {
if (!init.lazies)
init.lazies = Object.create(null);
init.lazies[fieldName] = getterName;
+ prototype = prototype || Isolate.$isolateProperties;
var sentinelUndefined = {};
var sentinelInProgress = {};
prototype[fieldName] = sentinelUndefined;
prototype[getterName] = function() {
- var result = $[fieldName];
+ var result = this[fieldName];
try {
if (result === sentinelUndefined) {
- $[fieldName] = sentinelInProgress;
+ this[fieldName] = sentinelInProgress;
try {
- result = $[fieldName] = lazyValue();
+ result = this[fieldName] = lazyValue();
} finally {
if (result === sentinelUndefined)
- $[fieldName] = null;
+ this[fieldName] = null;
}
} else
if (result === sentinelInProgress)
- H.throwCyclicInit(staticName);
+ H.throwCyclicInit(staticName || fieldName);
return result;
} finally {
- $[getterName] = function() {
+ this[getterName] = function() {
return this[fieldName];
};
}
@@ -13989,11 +14137,11 @@ function init() {
init.currentScript = currentScript;
if (typeof dartMainRunner === "function")
dartMainRunner(function(a) {
- H.startRootIsolate(O.main$closure(), a);
+ H.startRootIsolate(R.main$closure(), a);
}, []);
else
(function(a) {
- H.startRootIsolate(O.main$closure(), a);
+ H.startRootIsolate(R.main$closure(), a);
})([]);
});
;
« no previous file with comments | « lib/src/runner/browser/static/host.dart ('k') | lib/src/runner/browser/static/host.dart.js.map » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698