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

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

Issue 1752193002: Add a few more known non-null cases (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 | « lib/src/codegen/nullable_type_inference.dart ('k') | test/codegen/expect/expect/expect.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/expect.js
diff --git a/test/codegen/expect/expect.js b/test/codegen/expect/expect.js
index 319325cef722591ad7ae65064e8c4f8ed93c8339..c907be161a945f86e757565b199d4c6ce0e5be3b 100644
--- a/test/codegen/expect/expect.js
+++ b/test/codegen/expect/expect.js
@@ -31,7 +31,7 @@ dart_library.library('expect', null, /* Imports */[
}
}
if (dart.notNull(end) < dart.notNull(string[dartx.length])) buf.write("...");
- return dart.toString(buf);
+ return buf.toString();
}
static _stringDifference(expected, actual) {
if (dart.notNull(expected[dartx.length]) < 20 && dart.notNull(actual[dartx.length]) < 20) return null;
@@ -205,7 +205,7 @@ dart_library.library('expect', null, /* Imports */[
for (let val of extraSet) {
sb.write(`${val} `);
}
- Expect._fail(dart.toString(sb));
+ Expect._fail(sb.toString());
}
static throws(f, check, reason) {
if (check === void 0) check = null;
« no previous file with comments | « lib/src/codegen/nullable_type_inference.dart ('k') | test/codegen/expect/expect/expect.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698