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

Unified Diff: test/codegen/expect/temps.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/methods.js ('k') | test/codegen/expect/unittest.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/temps.js
diff --git a/test/codegen/expect/temps.js b/test/codegen/expect/temps.js
index df9da7f5fe08e2bb125bff7c3e7a3f4e7a115e2e..bd156f8ab898e6ce7447cf0727786d3a6b1b726d 100644
--- a/test/codegen/expect/temps.js
+++ b/test/codegen/expect/temps.js
@@ -26,8 +26,7 @@ dart_library.library('temps', null, /* Imports */[
this[_opt] = opt;
this.opt = null;
}
- named(opts) {
- let opt = opts && 'opt' in opts ? opts.opt : 456;
+ named({opt = 456} = {}) {
this.opt = opt;
this[_opt] = null;
}
« no previous file with comments | « test/codegen/expect/methods.js ('k') | test/codegen/expect/unittest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698