OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/bailout4_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__bailout4_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 bailout4_test = Object.create(null); |
| 11 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 12 bailout4_test.A = class A extends core.Object { |
| 13 get(index) { |
| 14 return 42; |
| 15 } |
| 16 }; |
| 17 dart.setSignature(bailout4_test.A, { |
| 18 methods: () => ({get: dart.definiteFunctionType(dart.dynamic, [dart.dynamic]
)}) |
| 19 }); |
| 20 dart.defineLazy(bailout4_test, { |
| 21 get a() { |
| 22 return new bailout4_test.A(); |
| 23 }, |
| 24 set a(_) {} |
| 25 }); |
| 26 dart.defineLazy(bailout4_test, { |
| 27 get b() { |
| 28 return core.List.new(4); |
| 29 }, |
| 30 set b(_) {} |
| 31 }); |
| 32 bailout4_test.count = 0; |
| 33 bailout4_test.main = function() { |
| 34 if (bailout4_test.b[dartx.get](0) != null) bailout4_test.main(); |
| 35 for (let i = 0; i < 2; i++) { |
| 36 for (let j = 0; j < 2; j++) { |
| 37 for (let k = 0; k < 2; k++) { |
| 38 expect$.Expect.equals(42, bailout4_test.a.get(i + j + k)); |
| 39 bailout4_test.count = dart.notNull(bailout4_test.count) + 1; |
| 40 } |
| 41 } |
| 42 } |
| 43 expect$.Expect.equals(8, bailout4_test.count); |
| 44 }; |
| 45 dart.fn(bailout4_test.main, VoidTodynamic()); |
| 46 // Exports: |
| 47 exports.bailout4_test = bailout4_test; |
| 48 }); |
OLD | NEW |