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

Unified Diff: test/codegen/expect/constructors.js

Issue 1484263002: Use destructuring assignments for named parameters (#180) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Destructure function params directly (no more opts in most cases) Created 5 years, 1 month 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/constructors.js
diff --git a/test/codegen/expect/constructors.js b/test/codegen/expect/constructors.js
index f1e02af6d0a941f6ca8f93440fa9dc2cac1e6a8d..d4e332ad68939015ea17d3a11b727fdf85e5248c 100644
--- a/test/codegen/expect/constructors.js
+++ b/test/codegen/expect/constructors.js
@@ -69,8 +69,7 @@ dart_library.library('constructors', null, /* Imports */[
constructors: () => ({G: [G, [], [core.String]]})
});
class H extends core.Object {
- H(opts) {
- let p1 = opts && 'p1' in opts ? opts.p1 : null;
+ H({p1 = null} = {}) {
}
}
dart.setSignature(H, {

Powered by Google App Engine
This is Rietveld 408576698