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

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

Issue 1062823004: Fix a couple codegen crashers (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Address comments 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/cascade.dart ('k') | test/codegen/expect/cascade.txt » ('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 bbbde0b645a20c882bc74d8b7612a650f613b2c5..dffaf904ec2bcd8409a6db89c3f1cacee6c6d4a6 100644
--- a/test/codegen/expect/cascade.js
+++ b/test/codegen/expect/cascade.js
@@ -73,6 +73,15 @@ var cascade;
})(), b = 2;
core.print(a);
}
+ // Function test_increment: () → void
+ function test_increment() {
+ let a = new A();
+ let y = ((() => {
+ a.x = dart.dbinary(a.x, '+', 1);
+ a.x = dart.dbinary(a.x, '-', 1);
+ return a;
+ })());
+ }
let Base$ = dart.generic(function(T) {
class Base extends core.Object {
Base() {
@@ -99,6 +108,7 @@ var cascade;
exports.test_VariableDeclaration_single = test_VariableDeclaration_single;
exports.test_VariableDeclaration_last = test_VariableDeclaration_last;
exports.test_VariableDeclaration_first = test_VariableDeclaration_first;
+ exports.test_increment = test_increment;
exports.Base$ = Base$;
exports.Base = Base;
exports.Foo = Foo;
« no previous file with comments | « test/codegen/cascade.dart ('k') | test/codegen/expect/cascade.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698