Index: lib/runtime/dart/js.js |
diff --git a/lib/runtime/dart/js.js b/lib/runtime/dart/js.js |
index 2461e10b851700281921ebfd92dc397b8d132fdc..0792094ad4f8a44e41ba63cd7ea7d359838ba041 100644 |
--- a/lib/runtime/dart/js.js |
+++ b/lib/runtime/dart/js.js |
@@ -25,7 +25,8 @@ dart_library.library('dart/js', null, /* Imports */[ |
if (arguments$ == null) { |
return _wrapToDart(new ctor()); |
} |
- return _wrapToDart(new ctor(...arguments$)); |
+ let unwrapped = core.List.from(arguments$[dartx.map](_convertToJS)); |
+ return _wrapToDart(new ctor(...unwrapped)); |
} |
static fromBrowserObject(object) { |
if (typeof object == 'number' || typeof object == 'string' || typeof object == 'boolean' || object == null) { |