OLD | NEW |
(Empty) | |
| 1 dart_library.library('language/issue7513_test', null, /* Imports */[ |
| 2 'dart_sdk', |
| 3 'expect' |
| 4 ], function load__issue7513_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 issue7513_test = Object.create(null); |
| 12 let JSArrayOfdouble = () => (JSArrayOfdouble = dart.constFn(_interceptors.JSAr
ray$(core.double)))(); |
| 13 let dynamicAnddynamicTodynamic = () => (dynamicAnddynamicTodynamic = dart.cons
tFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dart.dynamic])))(); |
| 14 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT
ype(dart.dynamic, [])))(); |
| 15 issue7513_test.foo = function(a, b) { |
| 16 dart.dsetindex(b, 0, 0.1); |
| 17 return dart.dsend(a, '*', dart.dindex(b, 0)); |
| 18 }; |
| 19 dart.fn(issue7513_test.foo, dynamicAnddynamicTodynamic()); |
| 20 issue7513_test.main = function() { |
| 21 let a = 0.1; |
| 22 let b = JSArrayOfdouble().of([0.1]); |
| 23 for (let i = 0; i < 20; i++) { |
| 24 issue7513_test.foo(a, b); |
| 25 } |
| 26 expect$.Expect.approxEquals(0.01, core.num._check(issue7513_test.foo(a, b)))
; |
| 27 }; |
| 28 dart.fn(issue7513_test.main, VoidTodynamic()); |
| 29 // Exports: |
| 30 exports.issue7513_test = issue7513_test; |
| 31 }); |
OLD | NEW |