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

Unified Diff: test/codegen/expect/closure.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 | « lib/src/js/template.dart ('k') | test/codegen/expect/collection/algorithms.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/closure.js
diff --git a/test/codegen/expect/closure.js b/test/codegen/expect/closure.js
index f1d937d8dcfb8edd7d4f8dba1f18e979f266d620..6321d8685aa20a4c800ffeabb83ae1e904942081 100644
--- a/test/codegen/expect/closure.js
+++ b/test/codegen/expect/closure.js
@@ -65,10 +65,7 @@ dart_library.library('closure', null, /* Imports */[
* @param {?} a
* @param {{b: (?|undefined), c: (?|undefined)}=} opts
*/
- static named_params(a, opts) {
- let b = opts && 'b' in opts ? opts.b : null;
- let c = opts && 'c' in opts ? opts.c : null;
- }
+ static named_params(a, {b = null, c = null} = {}) {}
nullary_method() {}
/**
* @param {function(?, ?=):?number} f
« no previous file with comments | « lib/src/js/template.dart ('k') | test/codegen/expect/collection/algorithms.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698