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

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: 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/wrappers.js ('k') | test/codegen/expect/methods.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/constructors.js
diff --git a/test/codegen/expect/constructors.js b/test/codegen/expect/constructors.js
index 37e6ecc2f5f4ead48c6df6f087986cf59e471a7e..b7b082f6568d88f45b8b864b4904570204e0d490 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, {
« no previous file with comments | « test/codegen/expect/collection/wrappers.js ('k') | test/codegen/expect/methods.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698