| Index: tests/compiler/dart2js/cps_ir/expected/runtime_types_3.js
|
| diff --git a/tests/compiler/dart2js/cps_ir/expected/runtime_types_3.js b/tests/compiler/dart2js/cps_ir/expected/runtime_types_3.js
|
| index 435bb62d8137aa60ab162fa76be5677c5e3d65e7..69172b2ec01e69ff5c80f4dace54b4e363826755 100644
|
| --- a/tests/compiler/dart2js/cps_ir/expected/runtime_types_3.js
|
| +++ b/tests/compiler/dart2js/cps_ir/expected/runtime_types_3.js
|
| @@ -10,14 +10,19 @@
|
| // }
|
|
|
| function() {
|
| - var line = H.S(H.createRuntimeType(H.runtimeTypeToString(H.getTypeArgumentByIndex(V.D$([V.C, H.getTypeArgumentByIndex(V.C$(P.$int), 0)]), 0))));
|
| + var v0 = H.createRuntimeType(H.runtimeTypeToString(H.getTypeArgumentByIndex(V.D$([V.C, H.getTypeArgumentByIndex(V.C$(P.$int), 0)]), 0))), v1 = v0._unmangledName;
|
| + v1 = H.S(v1 == null ? v0._unmangledName = function(str, names) {
|
| + return str.replace(/[^<,> ]+/g, function(m) {
|
| + return names[m] || m;
|
| + });
|
| + }(v0._typeName, init.mangledGlobalNames) : v1);
|
| if (typeof dartPrint == "function")
|
| - dartPrint(line);
|
| + dartPrint(v1);
|
| else if (typeof console == "object" && typeof console.log != "undefined")
|
| - console.log(line);
|
| + console.log(v1);
|
| else if (!(typeof window == "object")) {
|
| if (!(typeof print == "function"))
|
| - throw "Unable to print message: " + String(line);
|
| - print(line);
|
| + throw "Unable to print message: " + String(v1);
|
| + print(v1);
|
| }
|
| }
|
|
|