OLD | NEW |
1 define(['dart_sdk'], function(dart_sdk) { | 1 define(['dart_sdk'], function(dart_sdk) { |
2 'use strict'; | 2 'use strict'; |
3 const core = dart_sdk.core; | 3 const core = dart_sdk.core; |
4 const dart = dart_sdk.dart; | 4 const dart = dart_sdk.dart; |
5 const dartx = dart_sdk.dartx; | 5 const dartx = dart_sdk.dartx; |
6 const varargs = Object.create(null); | 6 const varargs = Object.create(null); |
7 const src__varargs = Object.create(null); | 7 const src__varargs = Object.create(null); |
8 let dynamicAnddynamicTodynamic = () => (dynamicAnddynamicTodynamic = dart.cons
tFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dart.dynamic])))(); | 8 let dynamicAnddynamicTodynamic = () => (dynamicAnddynamicTodynamic = dart.cons
tFn(dart.fnType(dart.dynamic, [dart.dynamic, dart.dynamic])))(); |
9 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFun
ctionType(dart.dynamic, [dart.dynamic])))(); | 9 let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.fnType(dart
.dynamic, [dart.dynamic])))(); |
10 varargs.varargsTest = function(x, ...others) { | 10 varargs.varargsTest = function(x, ...others) { |
11 let args = [1, others]; | 11 let args = [1, others]; |
12 dart.dcall(x, ...args); | 12 dart.dcall(x, ...args); |
13 }; | 13 }; |
14 dart.fn(varargs.varargsTest, dynamicAnddynamicTodynamic()); | 14 dart.fn(varargs.varargsTest, dynamicAnddynamicTodynamic()); |
15 varargs.varargsTest2 = function(x, ...others) { | 15 varargs.varargsTest2 = function(x, ...others) { |
16 let args = [1, others]; | 16 let args = [1, others]; |
17 dart.dcall(x, ...args); | 17 dart.dcall(x, ...args); |
18 }; | 18 }; |
19 dart.fn(varargs.varargsTest2, dynamicAnddynamicTodynamic()); | 19 dart.fn(varargs.varargsTest2, dynamicAnddynamicTodynamic()); |
(...skipping 13 matching lines...) Expand all Loading... |
33 dart.trackLibraries("varargs", { | 33 dart.trackLibraries("varargs", { |
34 "varargs.dart": varargs, | 34 "varargs.dart": varargs, |
35 "package:js/src/varargs.dart": src__varargs | 35 "package:js/src/varargs.dart": src__varargs |
36 }, null); | 36 }, null); |
37 // Exports: | 37 // Exports: |
38 return { | 38 return { |
39 varargs: varargs, | 39 varargs: varargs, |
40 src__varargs: src__varargs | 40 src__varargs: src__varargs |
41 }; | 41 }; |
42 }); | 42 }); |
OLD | NEW |