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

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

Issue 1099333002: canonicalize const (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: 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 | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/sunflower/dom.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/DeltaBlue.js
diff --git a/test/codegen/expect/DeltaBlue.js b/test/codegen/expect/DeltaBlue.js
index fb25edc0f3575033b3963a74132fa9a8ec458853..b1d4d68599afb5b580c1717ed622f78f79a52a7b 100644
--- a/test/codegen/expect/DeltaBlue.js
+++ b/test/codegen/expect/DeltaBlue.js
@@ -20,7 +20,7 @@ var DeltaBlue;
this.name = name;
}
nextWeaker() {
- return /* Unimplemented const */dart.setType([STRONG_PREFERRED, PREFERRED, STRONG_DEFAULT, NORMAL, WEAK_DEFAULT, WEAKEST], core.List$(Strength))[core.$get](this.value);
+ return dart.const(dart.setType([STRONG_PREFERRED, PREFERRED, STRONG_DEFAULT, NORMAL, WEAK_DEFAULT, WEAKEST], core.List$(Strength)))[core.$get](this.value);
}
static stronger(s1, s2) {
return dart.notNull(s1.value) < dart.notNull(s2.value);
@@ -35,13 +35,13 @@ var DeltaBlue;
return Strength.stronger(s1, s2) ? s1 : s2;
}
}
- let REQUIRED = new Strength(0, "required");
- let STRONG_PREFERRED = new Strength(1, "strongPreferred");
- let PREFERRED = new Strength(2, "preferred");
- let STRONG_DEFAULT = new Strength(3, "strongDefault");
- let NORMAL = new Strength(4, "normal");
- let WEAK_DEFAULT = new Strength(5, "weakDefault");
- let WEAKEST = new Strength(6, "weakest");
+ let REQUIRED = dart.const(new Strength(0, "required"));
+ let STRONG_PREFERRED = dart.const(new Strength(1, "strongPreferred"));
+ let PREFERRED = dart.const(new Strength(2, "preferred"));
+ let STRONG_DEFAULT = dart.const(new Strength(3, "strongDefault"));
+ let NORMAL = dart.const(new Strength(4, "normal"));
+ let WEAK_DEFAULT = dart.const(new Strength(5, "weakDefault"));
+ let WEAKEST = dart.const(new Strength(6, "weakest"));
class Constraint extends core.Object {
Constraint(strength) {
this.strength = strength;
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/sunflower/dom.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698