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

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

Issue 1178523004: fixes #215, removes special case for length (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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
« lib/src/codegen/js_codegen.dart ('K') | « test/codegen/expect/DeltaBlue.js ('k') | no next file » | 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 ab5728a7916a6a5adfc4e0fff01f15daeb6c1c2d..0a273d9eb6c8b1fe39b7e909443e0c21326f66af 100644
--- a/test/codegen/expect/cascade.js
+++ b/test/codegen/expect/cascade.js
@@ -50,7 +50,7 @@ dart.library('cascade', null, /* Imports */[
dart.fn(test_mutate_outside_cascade, dart.void, []);
function test_VariableDeclaration_single() {
let a = [];
- a.length = 2;
+ a[dartx.length] = 2;
a[dartx.add](42);
core.print(a);
}
@@ -58,7 +58,7 @@ dart.library('cascade', null, /* Imports */[
function test_VariableDeclaration_last() {
let a = 42, b = (() => {
let _ = [];
- _.length = 2;
+ _[dartx.length] = 2;
_[dartx.add](a);
return _;
})();
@@ -68,7 +68,7 @@ dart.library('cascade', null, /* Imports */[
function test_VariableDeclaration_first() {
let a = (() => {
let _ = [];
- _.length = 2;
+ _[dartx.length] = 2;
_[dartx.add](3);
return _;
})(), b = 2;
« lib/src/codegen/js_codegen.dart ('K') | « test/codegen/expect/DeltaBlue.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698