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

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

Issue 1138793002: Tag closures with their types (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: More comment fixes Created 5 years, 7 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_names.js ('k') | lib/runtime/dart/_native_typed_data.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_js_primitives.js
diff --git a/lib/runtime/dart/_js_primitives.js b/lib/runtime/dart/_js_primitives.js
index b58c15b65cc3f4fa6355f369472a997ac937293e..c4859e1ccd8a4c42208442d4e211e371b2fe6cbe 100644
--- a/lib/runtime/dart/_js_primitives.js
+++ b/lib/runtime/dart/_js_primitives.js
@@ -1,7 +1,7 @@
var _js_primitives = dart.defineLibrary(_js_primitives, {});
-(function(exports) {
+var core = dart.import(core);
+(function(exports, core) {
'use strict';
- // Function printString: (String) → void
function printString(string) {
if (typeof dartPrint == "function") {
dartPrint(string);
@@ -20,6 +20,7 @@ var _js_primitives = dart.defineLibrary(_js_primitives, {});
}
throw "Unable to print message: " + String(string);
}
+ dart.fn(printString, dart.void, [core.String]);
// Exports:
exports.printString = printString;
-})(_js_primitives);
+})(_js_primitives, core);
« no previous file with comments | « lib/runtime/dart/_js_names.js ('k') | lib/runtime/dart/_native_typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698