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

Unified Diff: pkg/dev_compiler/test/codegen_expected/script.js

Issue 2926613003: Generate better code for '=='. (Closed)
Patch Set: Address comments Created 3 years, 6 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: pkg/dev_compiler/test/codegen_expected/script.js
diff --git a/pkg/dev_compiler/test/codegen_expected/script.js b/pkg/dev_compiler/test/codegen_expected/script.js
index 2b8cfec37d2ccab6f9c2ef5f4cfd91d4baa20a13..0d1116c007d86f22d11ce64364f49b1d5789ac75 100644
--- a/pkg/dev_compiler/test/codegen_expected/script.js
+++ b/pkg/dev_compiler/test/codegen_expected/script.js
@@ -8,7 +8,7 @@ define(['dart_sdk'], function(dart_sdk) {
let ListOfStringTovoid = () => (ListOfStringTovoid = dart.constFn(dart.fnType(dart.void, [ListOfString()])))();
script.main = function(args) {
let name = args[dartx.join](' ');
- if (name == '') name = 'world';
+ if (name === '') name = 'world';
core.print(dart.str`hello ${name}`);
};
dart.fn(script.main, ListOfStringTovoid());

Powered by Google App Engine
This is Rietveld 408576698