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 5369cc4ad7a6c37f34a012511afca8754f153bc4..deeb502ca04a63fdc3cebf565470ba174e529003 100644 |
--- a/test/codegen/expect/collection/src/canonicalized_map.js |
+++ b/test/codegen/expect/collection/src/canonicalized_map.js |
@@ -13,12 +13,14 @@ dart_library.library('collection/src/canonicalized_map', null, /* Imports */[ |
const _isValidKey = Symbol('_isValidKey'); |
const CanonicalizedMap$ = dart.generic(function(C, K, V) { |
class CanonicalizedMap extends core.Object { |
- CanonicalizedMap(canonicalize, {isValidKey = null} = {}) { |
+ CanonicalizedMap(canonicalize, opts) { |
+ let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; |
this[_base] = core.Map$(C, utils.Pair$(K, V)).new(); |
this[_canonicalize] = canonicalize; |
this[_isValidKeyFn] = isValidKey; |
} |
- from(other, canonicalize, {isValidKey = null} = {}) { |
+ from(other, canonicalize, opts) { |
+ let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null; |
this[_base] = core.Map$(C, utils.Pair$(K, V)).new(); |
this[_canonicalize] = canonicalize; |
this[_isValidKeyFn] = isValidKey; |