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

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

Issue 1030063004: more care around generated names, fixes #60 #82 and #97 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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
1 var try_catch; 1 var try_catch;
2 (function(exports) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 // Function main: () → dynamic 4 // Function foo: () → dynamic
5 function main() { 5 function foo() {
6 try { 6 try {
7 throw "hi there"; 7 throw "hi there";
8 } catch ($e) { 8 } catch (e$) {
9 if (dart.is($e, core.String)) { 9 if (dart.is(e$, core.String)) {
10 let e = $e; 10 let e = e$;
11 let t = dart.stackTrace(e); 11 let t = dart.stackTrace(e);
12 } else {
13 let e = e$;
14 let t = dart.stackTrace(e);
15 throw e;
12 } 16 }
13 let e = $e;
14 let t = dart.stackTrace(e);
15 throw e;
16 } 17 }
17 18
18 } 19 }
20 // Function bar: () → dynamic
21 function bar() {
22 try {
23 throw "hi there";
24 } catch (e$) {
25 let e = e$;
26 let t = dart.stackTrace(e);
27 }
28
29 }
30 // Function main: () → dynamic
31 function main() {
32 foo();
33 bar();
34 }
19 // Exports: 35 // Exports:
36 exports.foo = foo;
37 exports.bar = bar;
20 exports.main = main; 38 exports.main = main;
21 })(try_catch || (try_catch = {})); 39 })(try_catch || (try_catch = {}));
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698