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

Unified Diff: lib/runtime/dart_utils.js

Issue 1186683005: dart:mirrors (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments Created 5 years, 6 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
Index: lib/runtime/dart_utils.js
diff --git a/lib/runtime/dart_utils.js b/lib/runtime/dart_utils.js
index 6c97e228da6d61d8a0347169c6ad8f06e02dd65b..35e3d56ca26c795d69a2b075fd51d398c5db43e0 100644
--- a/lib/runtime/dart_utils.js
+++ b/lib/runtime/dart_utils.js
@@ -112,4 +112,10 @@ var dart_utils;
}
dart_utils.copyProperties = copyProperties;
+
+ function instantiate(type, args) {
+ return new type(...args);
+ }
+ dart_utils.instantiate = instantiate;
+
})(dart_utils || (dart_utils = {}));

Powered by Google App Engine
This is Rietveld 408576698