OLD | NEW |
| (Empty) |
1 dart_library.library('dart/_js_primitives', null, /* Imports */[ | |
2 'dart/_runtime', | |
3 'dart/core' | |
4 ], /* Lazy imports */[ | |
5 ], function(exports, dart, core) { | |
6 'use strict'; | |
7 let dartx = dart.dartx; | |
8 function printString(string) { | |
9 if (typeof dartPrint == "function") { | |
10 dartPrint(string); | |
11 return; | |
12 } | |
13 if (typeof console == "object" && typeof console.log != "undefined") { | |
14 console.log(string); | |
15 return; | |
16 } | |
17 if (typeof window == "object") { | |
18 return; | |
19 } | |
20 if (typeof print == "function") { | |
21 print(string); | |
22 return; | |
23 } | |
24 throw "Unable to print message: " + String(string); | |
25 } | |
26 dart.fn(printString, dart.void, [core.String]); | |
27 // Exports: | |
28 exports.printString = printString; | |
29 }); | |
OLD | NEW |