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

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

Issue 1047023002: use == and != to enable handling null/undefined (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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/BenchmarkBase.js
diff --git a/test/codegen/expect/BenchmarkBase.js b/test/codegen/expect/BenchmarkBase.js
index f390d70c7cd2b3a0d4f33fedbd9cd98ee28e4e91..63ae85f53518446ea36ac19bd7b7f6eea0f8b35b 100644
--- a/test/codegen/expect/BenchmarkBase.js
+++ b/test/codegen/expect/BenchmarkBase.js
@@ -8,7 +8,7 @@ var BenchmarkBase;
}
}
static listEquals(expected, actual) {
- if (expected.length !== actual.length) {
+ if (expected.length != actual.length) {
throw `Lists have different lengths: ${expected.length} vs ${actual.length}`;
}
for (let i = 0; dart.notNull(i) < dart.notNull(actual.length); i = dart.notNull(i) + 1) {

Powered by Google App Engine
This is Rietveld 408576698