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)))); |
} |
} |