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

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

Issue 1263583005: implement exports, fixes #141 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: rebase Created 5 years, 4 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 | lib/runtime/dart_runtime.js » ('j') | lib/src/codegen/js_codegen.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_js_mirrors.js
diff --git a/lib/runtime/dart/_js_mirrors.js b/lib/runtime/dart/_js_mirrors.js
index 7a70e5f70937726932fe4c85e375a6dd1f3aacc4..e9d97229cd45429841850ca94a93fe050e67cff4 100644
--- a/lib/runtime/dart/_js_mirrors.js
+++ b/lib/runtime/dart/_js_mirrors.js
@@ -118,7 +118,7 @@ dart_library.library('dart/_js_mirrors', null, /* Imports */[
namedArgs = null;
dart.assert(getName(constructorName) == "");
dart.assert(namedArgs == null || dart.notNull(namedArgs.isEmpty));
- let instance = exports._dart.instantiate(this[_cls], args);
+ let instance = new this[_cls](...args);
return new JsInstanceMirror._(instance);
}
}
« no previous file with comments | « no previous file | lib/runtime/dart_runtime.js » ('j') | lib/src/codegen/js_codegen.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698