OLD | NEW |
1 dart_library.library('varargs', null, /* Imports */[ | 1 dart_library.library('varargs', null, /* Imports */[ |
2 "dart/_runtime" | 2 'dart/_runtime' |
3 ], /* Lazy imports */[ | 3 ], /* Lazy imports */[ |
4 ], function(exports, dart) { | 4 ], function(exports, dart) { |
5 'use strict'; | 5 'use strict'; |
6 let dartx = dart.dartx; | 6 let dartx = dart.dartx; |
7 function varargsTest(x, ...others) { | 7 function varargsTest(x, ...others) { |
8 let args = [1, others]; | 8 let args = [1, others]; |
9 dart.dsend(x, 'call', ...args); | 9 dart.dsend(x, 'call', ...args); |
10 } | 10 } |
11 dart.fn(varargsTest); | 11 dart.fn(varargsTest); |
12 function varargsTest2(x, ...others) { | 12 function varargsTest2(x, ...others) { |
13 let args = [1, others]; | 13 let args = [1, others]; |
14 dart.dsend(x, 'call', ...args); | 14 dart.dsend(x, 'call', ...args); |
15 } | 15 } |
16 dart.fn(varargsTest2); | 16 dart.fn(varargsTest2); |
17 // Exports: | 17 // Exports: |
18 exports.varargsTest = varargsTest; | 18 exports.varargsTest = varargsTest; |
19 exports.varargsTest2 = varargsTest2; | 19 exports.varargsTest2 = varargsTest2; |
20 }); | 20 }); |
OLD | NEW |