Index: test/codegen/expect/varargs.js |
diff --git a/test/codegen/expect/varargs.js b/test/codegen/expect/varargs.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..796adfad7219fd1047e284887938809f541cacdb |
--- /dev/null |
+++ b/test/codegen/expect/varargs.js |
@@ -0,0 +1,20 @@ |
+dart_library.library('varargs', null, /* Imports */[ |
+ "dart/_runtime" |
+], /* Lazy imports */[ |
+], function(exports, dart) { |
+ 'use strict'; |
+ let dartx = dart.dartx; |
+ function varargsTest(x, ...others) { |
+ let args = [1, others]; |
+ dart.dsend(x, 'call', ...args); |
+ } |
+ dart.fn(varargsTest); |
+ function varargsTest2(x, ...others) { |
+ let args = [1, others]; |
+ dart.dsend(x, 'call', ...args); |
+ } |
+ dart.fn(varargsTest2); |
+ // Exports: |
+ exports.varargsTest = varargsTest; |
+ exports.varargsTest2 = varargsTest2; |
+}); |