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

Unified Diff: tool/input_sdk/lib/js/dart2js/js_dart2js.dart

Issue 1718353002: Fixes #460 (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 10 months 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') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
/**
« no previous file with comments | « lib/runtime/dart/js.js ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698