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

Side by Side Diff: test/codegen/expect/_js_primitives/_js_primitives.js

Issue 968273002: Fixing layout in js output (use full paths rather than just the library name) (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: address review comments Created 5 years, 9 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
OLDNEW
(Empty)
1 var _js_primitives;
2 (function(exports) {
3 'use strict';
4 // Function printString: (String) → void
5 function printString(string) {
6 if (typeof dartPrint == "function") {
7 dartPrint(string);
8 return;
9 }
10 if (dart.notNull(typeof console == "object") && dart.notNull(typeof console. log != "undefined")) {
11 console.log(string);
12 return;
13 }
14 if (typeof window == "object") {
15 return;
16 }
17 if (typeof print == "function") {
18 print(string);
19 return;
20 }
21 throw "Unable to print message: " + String(string);
22 }
23 // Exports:
24 exports.printString = printString;
25 })(_js_primitives || (_js_primitives = {}));
OLDNEW
« no previous file with comments | « test/codegen/expect/_js_names/_js_names.js ('k') | test/codegen/expect/_native_typed_data/_native_typed_data.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698