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

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

Issue 1757343002: upgrade to latest analyzer (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 10 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/node_modules.js ('k') | test/codegen/expect/syncstar_syntax.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/opassign.js
diff --git a/test/codegen/expect/opassign.js b/test/codegen/expect/opassign.js
index f0a92f9c9b69d1672a3343fddc58cacd87fc72af..effb09d5ac273349cbacb24fa3d5151cc0831c2a 100644
--- a/test/codegen/expect/opassign.js
+++ b/test/codegen/expect/opassign.js
@@ -30,11 +30,11 @@ dart_library.library('opassign', null, /* Imports */[
function main() {
let f = dart.map([0, 40]);
core.print('should only call "index" 2 times:');
- let i = exports.index;
- f[dartx.set](i, dart.dsend(f[dartx.get](i), '+', 1));
+ let i = dart.as(exports.index, core.int);
+ f[dartx.set](i, dart.notNull(f[dartx.get](i)) + 1);
forcePostfix((() => {
- let i = exports.index, x = f[dartx.get](i);
- f[dartx.set](i, dart.dsend(x, '+', 1));
+ let i = dart.as(exports.index, core.int), x = f[dartx.get](i);
+ f[dartx.set](i, dart.notNull(x) + 1);
return x;
})());
core.print('should only call "foo" 2 times:');
@@ -46,8 +46,8 @@ dart_library.library('opassign', null, /* Imports */[
return x;
})());
core.print('op assign test, should only call "index" twice:');
- let i$ = exports.index;
- f[dartx.set](i$, dart.dsend(f[dartx.get](i$), '+', f[dartx.get](exports.index)));
+ let i$ = dart.as(exports.index, core.int);
+ f[dartx.set](i$, dart.notNull(f[dartx.get](i$)) + dart.notNull(f[dartx.get](exports.index)));
}
dart.fn(main);
function forcePostfix(x) {
« no previous file with comments | « test/codegen/expect/node_modules.js ('k') | test/codegen/expect/syncstar_syntax.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698