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

Unified Diff: test/codegen_expected/destructuring.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/destructuring.js
diff --git a/test/codegen_expected/destructuring.js b/test/codegen_expected/destructuring.js
index 832872dd741d40d046245874f95817a29946b457..4365000fe3b2d689e089733969013998d28ee83c 100644
--- a/test/codegen_expected/destructuring.js
+++ b/test/codegen_expected/destructuring.js
@@ -6,6 +6,7 @@ dart_library.library('destructuring', null, /* Imports */[
const dart = dart_sdk.dart;
const dartx = dart_sdk.dartx;
const destructuring = Object.create(null);
+ const src__varargs = Object.create(null);
let intAnddynamic__Todynamic = () => (intAnddynamic__Todynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [core.int, dart.dynamic], [dart.dynamic])))();
let intAnddynamic__Todynamic$ = () => (intAnddynamic__Todynamic$ = dart.constFn(dart.definiteFunctionType(dart.dynamic, [core.int, dart.dynamic], {c: dart.dynamic})))();
let intAnddynamicTodynamic = () => (intAnddynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [core.int, dart.dynamic])))();
@@ -13,6 +14,7 @@ dart_library.library('destructuring', null, /* Imports */[
let __Todynamic = () => (__Todynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [], [core.int, dart.dynamic, dart.dynamic])))();
let __Todynamic$ = () => (__Todynamic$ = dart.constFn(dart.definiteFunctionType(dart.dynamic, [], {let: core.int, function: dart.dynamic, arguments: dart.dynamic})))();
let __Todynamic$0 = () => (__Todynamic$0 = dart.constFn(dart.definiteFunctionType(dart.dynamic, [], {constructor: core.int, valueOf: dart.dynamic, hasOwnProperty: dart.dynamic})))();
+ let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))();
destructuring.f = function(a, b, c = 1) {
destructuring.f(a, b, c);
};
@@ -71,6 +73,19 @@ dart_library.library('destructuring', null, /* Imports */[
destructuring.f(constructor, valueOf, hasOwnProperty);
};
dart.fn(destructuring.names_clashing_with_object_props, __Todynamic$0());
+ 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.destructuring = destructuring;
+ exports.src__varargs = src__varargs;
});

Powered by Google App Engine
This is Rietveld 408576698