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

Unified Diff: test/codegen/expect/dart/isolate.js

Issue 977613002: Make int and double nullable by default (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: actually upload changes Created 5 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
Index: test/codegen/expect/dart/isolate.js
diff --git a/test/codegen/expect/dart/isolate.js b/test/codegen/expect/dart/isolate.js
index f6ea0498f73dc1d4a7185a127c660a2e72f512ef..eecd99a9e1a4e4911d480a33bc151444a1f7ca2c 100644
--- a/test/codegen/expect/dart/isolate.js
+++ b/test/codegen/expect/dart/isolate.js
@@ -38,7 +38,7 @@ var isolate;
throw new core.UnimplementedError("packageRoot");
try {
if (dart.is(args, core.List$(core.String))) {
- for (let i = 0; i < args.length; i++) {
+ for (let i = 0; dart.notNull(i) < dart.notNull(args.length); dart.notNull(i)++) {
if (!(typeof args.get(i) == string)) {
throw new core.ArgumentError(`Args must be a list of Strings ${args}`);
}

Powered by Google App Engine
This is Rietveld 408576698