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

Unified Diff: test/codegen_expected/varargs.js

Issue 2234343003: fix #620, infer the input files from sources (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: fix Created 4 years, 4 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
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;
});

Powered by Google App Engine
This is Rietveld 408576698