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

Side by Side Diff: lib/runtime/dart/_js_primitives.js

Issue 1145243013: Check for duplicate library names (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 unified diff | Download patch
« no previous file with comments | « lib/runtime/dart/_js_helper.js ('k') | lib/runtime/dart/_native_typed_data.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var _js_primitives = dart.defineLibrary(_js_primitives, {}); 1 dart.library('dart/_js_primitives', null, /* Imports */[
2 var core = dart.import(core); 2 'dart/core'
3 (function(exports, core) { 3 ], /* Lazy imports */[
4 ], function(exports, core) {
4 'use strict'; 5 'use strict';
5 function printString(string) { 6 function printString(string) {
6 if (typeof dartPrint == "function") { 7 if (typeof dartPrint == "function") {
7 dartPrint(string); 8 dartPrint(string);
8 return; 9 return;
9 } 10 }
10 if (typeof console == "object" && typeof console.log != "undefined") { 11 if (typeof console == "object" && typeof console.log != "undefined") {
11 console.log(string); 12 console.log(string);
12 return; 13 return;
13 } 14 }
14 if (typeof window == "object") { 15 if (typeof window == "object") {
15 return; 16 return;
16 } 17 }
17 if (typeof print == "function") { 18 if (typeof print == "function") {
18 print(string); 19 print(string);
19 return; 20 return;
20 } 21 }
21 throw "Unable to print message: " + String(string); 22 throw "Unable to print message: " + String(string);
22 } 23 }
23 dart.fn(printString, dart.void, [core.String]); 24 dart.fn(printString, dart.void, [core.String]);
24 // Exports: 25 // Exports:
25 exports.printString = printString; 26 exports.printString = printString;
26 })(_js_primitives, core); 27 });
OLDNEW
« no previous file with comments | « lib/runtime/dart/_js_helper.js ('k') | lib/runtime/dart/_native_typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698