Chromium Code Reviews

Side by Side Diff: test/codegen/expect/try_catch.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.
Jump to:
View unified diff |
« no previous file with comments | « test/codegen/expect/temps.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var try_catch = dart.defineLibrary(try_catch, {}); 1 dart.library('try_catch', 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 foo() { 6 function foo() {
6 try { 7 try {
7 throw "hi there"; 8 throw "hi there";
8 } catch (e$) { 9 } catch (e$) {
9 if (dart.is(e$, core.String)) { 10 if (dart.is(e$, core.String)) {
10 let e = e$; 11 let e = e$;
11 let t = dart.stackTrace(e); 12 let t = dart.stackTrace(e);
12 } else { 13 } else {
13 let e = e$; 14 let e = e$;
(...skipping 54 matching lines...)
68 wub(); 69 wub();
69 } 70 }
70 dart.fn(main); 71 dart.fn(main);
71 // Exports: 72 // Exports:
72 exports.foo = foo; 73 exports.foo = foo;
73 exports.bar = bar; 74 exports.bar = bar;
74 exports.baz = baz; 75 exports.baz = baz;
75 exports.qux = qux; 76 exports.qux = qux;
76 exports.wub = wub; 77 exports.wub = wub;
77 exports.main = main; 78 exports.main = main;
78 })(try_catch, core); 79 });
OLDNEW
« no previous file with comments | « test/codegen/expect/temps.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine