Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Unified Diff: test/codegen/expect/varargs.js

Issue 1424133007: Compile package:js.{rest, spread} helpers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Use freshly released version 0.6.0-beta.6 of package:js ran formatter Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/js/src/varargs.txt ('k') | test/codegen/expect/varargs.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+});
« no previous file with comments | « test/codegen/expect/js/src/varargs.txt ('k') | test/codegen/expect/varargs.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698