Chromium Code Reviews| Index: lib/compiler/implementation/ssa/codegen.dart |
| =================================================================== |
| --- lib/compiler/implementation/ssa/codegen.dart (revision 12240) |
| +++ lib/compiler/implementation/ssa/codegen.dart (working copy) |
| @@ -2377,7 +2377,9 @@ |
| new js.PropertyAccess.field(pop(), typeVariable.toString()); |
| js.Expression genericName = new js.LiteralString("'${arguments.head}'"); |
| js.Binary eqTest = new js.Binary('===', field, genericName); |
| - result = new js.Binary('&&', result, eqTest); |
| + js.Prefix nullTest = new js.Prefix('!', field); |
|
kasperl
2012/09/12 12:19:04
Add a comment that explains why it is necessary to
ngeoffray
2012/09/12 12:30:39
Done.
|
| + result = new js.Binary( |
| + '&&', result, new js.Binary('||', eqTest, nullTest)); |
| } |
| push(result, node); |
| } |