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

Side by Side Diff: test/codegen/expect/js/src/varargs.js

Issue 1879373004: Implement modular compilation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
(Empty)
1 dart_library.library('js/src/varargs', null, /* Imports */[
2 'dart/_runtime',
3 'dart/core'
4 ], /* Lazy imports */[
5 ], function(exports, dart, core) {
6 'use strict';
7 let dartx = dart.dartx;
8 class _Rest extends core.Object {
9 _Rest() {
10 }
11 }
12 dart.setSignature(_Rest, {
13 constructors: () => ({_Rest: [_Rest, []]})
14 });
15 const rest = dart.const(new _Rest());
16 function spread(args) {
17 dart.throw(new core.StateError('The spread function cannot be called, ' + 'i t should be compiled away.'));
18 }
19 dart.fn(spread);
20 // Exports:
21 exports.rest = rest;
22 exports.spread = spread;
23 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698