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

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

Issue 1645633002: Rebase on latest package:collection (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: 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..03744bc169ca52cb1f9dae9898e42e2c3e091135 100644
--- a/test/codegen/expect/collection/src/canonicalized_map.js
+++ b/test/codegen/expect/collection/src/canonicalized_map.js
@@ -32,9 +32,12 @@ dart_library.library('collection/src/canonicalized_map', null, /* Imports */[
return pair == null ? null : pair.last;
}
set(key, value) {
- dart.as(key, K);
- dart.as(value, V);
- this[_base].set(dart.as(dart.dcall(this[_canonicalize], key), C), new (utils.Pair$(K, V))(key, value));
+ (() => {
+ dart.as(key, K);
+ dart.as(value, V);
+ if (!dart.notNull(this[_isValidKey](key))) return;
+ this[_base].set(dart.as(dart.dcall(this[_canonicalize], key), C), new (utils.Pair$(K, V))(key, value));
+ })();
return value;
}
addAll(other) {
« no previous file with comments | « test/codegen/expect/collection/algorithms.txt ('k') | test/codegen/expect/collection/src/canonicalized_map.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698