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

Unified Diff: lib/runtime/dart/js.js

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 | « no previous file | tool/input_sdk/lib/js/dart2js/js_dart2js.dart » ('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 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) {
« no previous file with comments | « no previous file | tool/input_sdk/lib/js/dart2js/js_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698