Index: tool/input_sdk/lib/js/dart2js/js_dart2js.dart |
diff --git a/tool/input_sdk/lib/js/dart2js/js_dart2js.dart b/tool/input_sdk/lib/js/dart2js/js_dart2js.dart |
index da084509b49496b3d1c0be2c6fe51916304039cc..ada212291d7fb08a9a47cd8ce7341cb7116b7e1f 100644 |
--- a/tool/input_sdk/lib/js/dart2js/js_dart2js.dart |
+++ b/tool/input_sdk/lib/js/dart2js/js_dart2js.dart |
@@ -120,7 +120,8 @@ class JsObject { |
if (arguments == null) { |
return _wrapToDart(JS('', 'new #()', ctor)); |
} |
- return _wrapToDart(JS('', 'new #(...#)', ctor, arguments)); |
+ var unwrapped = new List.from(arguments.map(_convertToJS)); |
+ return _wrapToDart(JS('', 'new #(...#)', ctor, unwrapped)); |
} |
/** |