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

Unified Diff: test/codegen/expect/js/src/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 | « pubspec.yaml ('k') | test/codegen/expect/js/src/varargs.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/js/src/varargs.js
diff --git a/test/codegen/expect/js/src/varargs.js b/test/codegen/expect/js/src/varargs.js
new file mode 100644
index 0000000000000000000000000000000000000000..3081572a9796a2b659e46bd316042de4c8b8e185
--- /dev/null
+++ b/test/codegen/expect/js/src/varargs.js
@@ -0,0 +1,23 @@
+dart_library.library('js/src/varargs', null, /* Imports */[
+ "dart/_runtime",
+ 'dart/core'
+], /* Lazy imports */[
+], function(exports, dart, core) {
+ 'use strict';
+ let dartx = dart.dartx;
+ class _Rest extends core.Object {
+ _Rest() {
+ }
+ }
+ dart.setSignature(_Rest, {
+ constructors: () => ({_Rest: [_Rest, []]})
+ });
+ let rest = dart.const(new _Rest());
+ function spread(args) {
+ dart.throw(new core.StateError('The spread function cannot be called, ' + 'it should be compiled away.'));
+ }
+ dart.fn(spread);
+ // Exports:
+ exports.rest = rest;
+ exports.spread = spread;
+});
« no previous file with comments | « pubspec.yaml ('k') | test/codegen/expect/js/src/varargs.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698