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

Unified Diff: lib/runtime/dart/js.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/isolate.js ('k') | lib/runtime/dart/mirrors.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/js.js
diff --git a/lib/runtime/dart/js.js b/lib/runtime/dart/js.js
index c4a9c9039cda5786b76ee10e4b6ef8c336aee362..02b9eb17b56778e743fcd735f27d6bba126edb32 100644
--- a/lib/runtime/dart/js.js
+++ b/lib/runtime/dart/js.js
@@ -153,8 +153,7 @@ dart_library.library('dart/js', null, /* Imports */[
_fromJs(jsObject) {
super._fromJs(jsObject);
}
- apply(args, opts) {
- let thisArg = opts && 'thisArg' in opts ? opts.thisArg : null;
+ apply(args, {thisArg = null} = {}) {
return _convertToDart(this[_jsObject].apply(_convertToJS(thisArg), args == null ? null : core.List.from(args[dartx.map](_convertToJS))));
}
}
« no previous file with comments | « lib/runtime/dart/isolate.js ('k') | lib/runtime/dart/mirrors.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698