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

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

Issue 1093353004: fix list initializers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: baselines Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/html_input.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/cascade.js
diff --git a/test/codegen/expect/cascade.js b/test/codegen/expect/cascade.js
index 97bdf1eefb46de54e114d384f6a4fbbb9d2497aa..f2a239d6a9d3e26119ab737878bc240ce6aa6c50 100644
--- a/test/codegen/expect/cascade.js
+++ b/test/codegen/expect/cascade.js
@@ -48,7 +48,7 @@ var cascade;
}
// Function test_VariableDeclaration_single: () → void
function test_VariableDeclaration_single() {
- let a = new core.List.from([]);
+ let a = [];
a[core.$length] = 2;
a[core.$add](42);
core.print(a);
@@ -56,7 +56,7 @@ var cascade;
// Function test_VariableDeclaration_last: () → void
function test_VariableDeclaration_last() {
let a = 42, b = (() => {
- let _ = new core.List.from([]);
+ let _ = [];
_[core.$length] = 2;
_[core.$add](a);
return _;
@@ -66,7 +66,7 @@ var cascade;
// Function test_VariableDeclaration_first: () → void
function test_VariableDeclaration_first() {
let a = (() => {
- let _ = new core.List.from([]);
+ let _ = [];
_[core.$length] = 2;
_[core.$add](3);
return _;
@@ -85,7 +85,7 @@ var cascade;
let Base$ = dart.generic(function(T) {
class Base extends core.Object {
Base() {
- this.x = new core.List$(T).from([]);
+ this.x = dart.setType([], core.List$(T));
}
}
return Base;
« no previous file with comments | « test/codegen/expect/DeltaBlue.js ('k') | test/codegen/expect/html_input.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698