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

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

Issue 1484263002: Use destructuring assignments for named parameters (#180) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years 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 | « test/codegen/expect/collection/algorithms.js ('k') | test/codegen/expect/collection/wrappers.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 deeb502ca04a63fdc3cebf565470ba174e529003..5369cc4ad7a6c37f34a012511afca8754f153bc4 100644
--- a/test/codegen/expect/collection/src/canonicalized_map.js
+++ b/test/codegen/expect/collection/src/canonicalized_map.js
@@ -13,14 +13,12 @@ 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, opts) {
- let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null;
+ CanonicalizedMap(canonicalize, {isValidKey = null} = {}) {
this[_base] = core.Map$(C, utils.Pair$(K, V)).new();
this[_canonicalize] = canonicalize;
this[_isValidKeyFn] = isValidKey;
}
- from(other, canonicalize, opts) {
- let isValidKey = opts && 'isValidKey' in opts ? opts.isValidKey : null;
+ from(other, canonicalize, {isValidKey = null} = {}) {
this[_base] = core.Map$(C, utils.Pair$(K, V)).new();
this[_canonicalize] = canonicalize;
this[_isValidKeyFn] = isValidKey;
« no previous file with comments | « test/codegen/expect/collection/algorithms.js ('k') | test/codegen/expect/collection/wrappers.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698