OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/logical_expression2_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__logical_expression2_test(exports, dart_sdk, expect) { |
| 5 'use strict'; |
| 6 const core = dart_sdk.core; |
| 7 const _interceptors = dart_sdk._interceptors; |
| 8 const dart = dart_sdk.dart; |
| 9 const dartx = dart_sdk.dartx; |
| 10 const expect$ = expect.expect; |
| 11 const logical_expression2_test = Object.create(null); |
| 12 let JSArrayOfObject = () => (JSArrayOfObject = dart.constFn(_interceptors.JSAr
ray$(core.Object)))(); |
| 13 let ObjectTovoid = () => (ObjectTovoid = dart.constFn(dart.definiteFunctionTyp
e(dart.void, [core.Object])))(); |
| 14 let dynamicToint = () => (dynamicToint = dart.constFn(dart.definiteFunctionTyp
e(core.int, [dart.dynamic])))(); |
| 15 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 16 logical_expression2_test.globalCounter = 0; |
| 17 logical_expression2_test.nonInlinedUse = function(object) { |
| 18 if (new core.DateTime.now().millisecondsSinceEpoch == 42) logical_expression
2_test.nonInlinedUse(object); |
| 19 if (!(typeof object == 'string')) { |
| 20 logical_expression2_test.globalCounter = dart.notNull(logical_expression2_
test.globalCounter) + 1; |
| 21 } |
| 22 }; |
| 23 dart.fn(logical_expression2_test.nonInlinedUse, ObjectTovoid()); |
| 24 logical_expression2_test.confuse = function(x) { |
| 25 if (new core.DateTime.now().millisecondsSinceEpoch == 42) return logical_exp
ression2_test.confuse(dart.dsend(x, '-', 1)); |
| 26 return core.int._check(x); |
| 27 }; |
| 28 dart.fn(logical_expression2_test.confuse, dynamicToint()); |
| 29 logical_expression2_test.main = function() { |
| 30 let o = JSArrayOfObject().of(["foo", 499])[dartx.get](logical_expression2_te
st.confuse(1)); |
| 31 if (typeof o == 'number' || typeof o == 'string' && true) { |
| 32 logical_expression2_test.nonInlinedUse(o); |
| 33 } |
| 34 expect$.Expect.equals(1, logical_expression2_test.globalCounter); |
| 35 }; |
| 36 dart.fn(logical_expression2_test.main, VoidTodynamic()); |
| 37 // Exports: |
| 38 exports.logical_expression2_test = logical_expression2_test; |
| 39 }); |
OLD | NEW |