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

Unified Diff: lib/runtime/dart/mirrors.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/runtime/dart/js.js ('k') | lib/src/closure/closure_annotator.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/mirrors.js
diff --git a/lib/runtime/dart/mirrors.js b/lib/runtime/dart/mirrors.js
index 42ac300e35c984709e3ad21b8afe43589b2fe8d0..584fa58450046cc6a1e5a79d89baab07d18e3c50 100644
--- a/lib/runtime/dart/mirrors.js
+++ b/lib/runtime/dart/mirrors.js
@@ -97,11 +97,7 @@ dart_library.library('dart/mirrors', null, /* Imports */[
constructors: () => ({Comment: [Comment, [core.String, core.String, core.bool]]})
});
class MirrorsUsed extends core.Object {
- MirrorsUsed(opts) {
- let symbols = opts && 'symbols' in opts ? opts.symbols : null;
- let targets = opts && 'targets' in opts ? opts.targets : null;
- let metaTargets = opts && 'metaTargets' in opts ? opts.metaTargets : null;
- let override = opts && 'override' in opts ? opts.override : null;
+ MirrorsUsed({symbols = null, targets = null, metaTargets = null, override = null} = {}) {
this.symbols = symbols;
this.targets = targets;
this.metaTargets = metaTargets;
« no previous file with comments | « lib/runtime/dart/js.js ('k') | lib/src/closure/closure_annotator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698