OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/execute_finally4_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__execute_finally4_test(exports, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const dart = dart_sdk.dart; |
| 8 const dartx = dart_sdk.dartx; |
| 9 const expect$ = expect.expect; |
| 10 const execute_finally4_test = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 execute_finally4_test.Helper = class Helper extends core.Object { |
| 13 new() { |
| 14 this.i = 0; |
| 15 } |
| 16 f1() { |
| 17 try { |
| 18 let j = null; |
| 19 j = execute_finally4_test.Helper.func(); |
| 20 this.i = 1; |
| 21 } finally { |
| 22 this.i = dart.notNull(this.i) + 10; |
| 23 } |
| 24 return dart.notNull(this.i) + 200; |
| 25 try { |
| 26 let j = null; |
| 27 j = execute_finally4_test.Helper.func(); |
| 28 } finally { |
| 29 this.i = dart.notNull(this.i) + 10; |
| 30 } |
| 31 } |
| 32 static func() { |
| 33 let i = 0; |
| 34 while (i < 10) { |
| 35 i++; |
| 36 } |
| 37 return i; |
| 38 } |
| 39 }; |
| 40 dart.setSignature(execute_finally4_test.Helper, { |
| 41 constructors: () => ({new: dart.definiteFunctionType(execute_finally4_test.H
elper, [])}), |
| 42 methods: () => ({f1: dart.definiteFunctionType(core.int, [])}), |
| 43 statics: () => ({func: dart.definiteFunctionType(core.int, [])}), |
| 44 names: ['func'] |
| 45 }); |
| 46 execute_finally4_test.ExecuteFinally4Test = class ExecuteFinally4Test extends
core.Object { |
| 47 static testMain() { |
| 48 let obj = new execute_finally4_test.Helper(); |
| 49 expect$.Expect.equals(211, obj.f1()); |
| 50 expect$.Expect.equals(11, obj.i); |
| 51 } |
| 52 }; |
| 53 dart.setSignature(execute_finally4_test.ExecuteFinally4Test, { |
| 54 statics: () => ({testMain: dart.definiteFunctionType(dart.dynamic, [])}), |
| 55 names: ['testMain'] |
| 56 }); |
| 57 execute_finally4_test.main = function() { |
| 58 execute_finally4_test.ExecuteFinally4Test.testMain(); |
| 59 }; |
| 60 dart.fn(execute_finally4_test.main, VoidTodynamic()); |
| 61 // Exports: |
| 62 exports.execute_finally4_test = execute_finally4_test; |
| 63 }); |
OLD | NEW |