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

Unified Diff: test/codegen/expect/collection/src/canonicalized_map.js

Issue 1633003002: Add --modules=node support (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: regen sdk and expectations Created 4 years, 11 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
Index: test/codegen/expect/collection/src/canonicalized_map.js
diff --git a/test/codegen/expect/collection/src/canonicalized_map.js b/test/codegen/expect/collection/src/canonicalized_map.js
index ad42dd3c4b32dc65fe68fe881070a1f7314692dc..7b8fece4d53b296e2df41c2faae7aa38a1f8682a 100644
--- a/test/codegen/expect/collection/src/canonicalized_map.js
+++ b/test/codegen/expect/collection/src/canonicalized_map.js
@@ -62,7 +62,7 @@ dart_library.library('collection/src/canonicalized_map', null, /* Imports */[
return this[_base].isNotEmpty;
}
get keys() {
- return this[_base].values[dartx.map](dart.fn(pair => pair.first, K, [utils.Pair$(K, V)]));
+ return dart.as(this[_base].values[dartx.map](dart.fn(pair => pair.first, K, [utils.Pair$(K, V)])), core.Iterable$(K));
}
get length() {
return this[_base].length;
@@ -78,7 +78,7 @@ dart_library.library('collection/src/canonicalized_map', null, /* Imports */[
return pair == null ? null : pair.last;
}
get values() {
- return this[_base].values[dartx.map](dart.fn(pair => pair.last, V, [utils.Pair$(K, V)]));
+ return dart.as(this[_base].values[dartx.map](dart.fn(pair => pair.last, V, [utils.Pair$(K, V)])), core.Iterable$(V));
}
toString() {
return collection.Maps.mapToString(this);
@@ -109,7 +109,7 @@ dart_library.library('collection/src/canonicalized_map', null, /* Imports */[
});
return CanonicalizedMap;
});
- let CanonicalizedMap = CanonicalizedMap$();
+ const CanonicalizedMap = CanonicalizedMap$();
// Exports:
exports.CanonicalizedMap$ = CanonicalizedMap$;
exports.CanonicalizedMap = CanonicalizedMap;

Powered by Google App Engine
This is Rietveld 408576698