OLD | NEW |
1 dart_library.library('js/src/varargs', null, /* Imports */[ | 1 dart_library.library('js/src/varargs', null, /* Imports */[ |
2 "dart/_runtime", | 2 'dart/_runtime', |
3 'dart/core' | 3 'dart/core' |
4 ], /* Lazy imports */[ | 4 ], /* Lazy imports */[ |
5 ], function(exports, dart, core) { | 5 ], function(exports, dart, core) { |
6 'use strict'; | 6 'use strict'; |
7 let dartx = dart.dartx; | 7 let dartx = dart.dartx; |
8 class _Rest extends core.Object { | 8 class _Rest extends core.Object { |
9 _Rest() { | 9 _Rest() { |
10 } | 10 } |
11 } | 11 } |
12 dart.setSignature(_Rest, { | 12 dart.setSignature(_Rest, { |
13 constructors: () => ({_Rest: [_Rest, []]}) | 13 constructors: () => ({_Rest: [_Rest, []]}) |
14 }); | 14 }); |
15 const rest = dart.const(new _Rest()); | 15 const rest = dart.const(new _Rest()); |
16 function spread(args) { | 16 function spread(args) { |
17 dart.throw(new core.StateError('The spread function cannot be called, ' + 'i
t should be compiled away.')); | 17 dart.throw(new core.StateError('The spread function cannot be called, ' + 'i
t should be compiled away.')); |
18 } | 18 } |
19 dart.fn(spread); | 19 dart.fn(spread); |
20 // Exports: | 20 // Exports: |
21 exports.rest = rest; | 21 exports.rest = rest; |
22 exports.spread = spread; | 22 exports.spread = spread; |
23 }); | 23 }); |
OLD | NEW |