Index: test/codegen_expected/varargs.js |
diff --git a/test/codegen_expected/varargs.js b/test/codegen_expected/varargs.js |
index 232f60c6cc2511b68101ccd7b39000503d000b1e..884fd19073e8ca1209026347139c739fc680ed73 100644 |
--- a/test/codegen_expected/varargs.js |
+++ b/test/codegen_expected/varargs.js |
@@ -6,7 +6,9 @@ dart_library.library('varargs', null, /* Imports */[ |
const dart = dart_sdk.dart; |
const dartx = dart_sdk.dartx; |
const varargs = Object.create(null); |
+ const src__varargs = Object.create(null); |
let dynamicAnddynamicTodynamic = () => (dynamicAnddynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic, dart.dynamic])))(); |
+ let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))(); |
varargs.varargsTest = function(x, ...others) { |
let args = [1, others]; |
dart.dsend(x, 'call', ...args); |
@@ -17,6 +19,19 @@ dart_library.library('varargs', null, /* Imports */[ |
dart.dsend(x, 'call', ...args); |
}; |
dart.fn(varargs.varargsTest2, dynamicAnddynamicTodynamic()); |
+ src__varargs._Rest = class _Rest extends core.Object { |
+ new() { |
+ } |
+ }; |
+ dart.setSignature(src__varargs._Rest, { |
+ constructors: () => ({new: dart.definiteFunctionType(src__varargs._Rest, [])}) |
+ }); |
+ src__varargs.rest = dart.const(new src__varargs._Rest()); |
+ src__varargs.spread = function(args) { |
+ dart.throw(new core.StateError('The spread function cannot be called, ' + 'it should be compiled away.')); |
+ }; |
+ dart.fn(src__varargs.spread, dynamicTodynamic()); |
// Exports: |
exports.varargs = varargs; |
+ exports.src__varargs = src__varargs; |
}); |