Chromium Code Reviews| Index: lib/compiler/implementation/js_backend/backend.dart |
| =================================================================== |
| --- lib/compiler/implementation/js_backend/backend.dart (revision 12025) |
| +++ lib/compiler/implementation/js_backend/backend.dart (working copy) |
| @@ -702,8 +702,14 @@ |
| return const SourceString('functionTypeCheck'); |
| } else if (element == compiler.intClass) { |
| return const SourceString('intTypeCheck'); |
| - } else if (Elements.isStringSupertype(element, compiler)) { |
| + } else if (Elements.isNumberOrStringSupertype(element, compiler)) { |
| if (nativeCheck) { |
|
kasperl
2012/09/07 13:03:46
Maybe use return ? : in these cases in this file?
ngeoffray
2012/09/07 14:06:36
Done.
|
| + return const SourceString('numberOrStringSuperNativeTypeCheck'); |
| + } else { |
| + return const SourceString('numberOrStringSuperTypeCheck'); |
| + } |
| + } else if (Elements.isStringOnlySupertype(element, compiler)) { |
| + if (nativeCheck) { |
| return const SourceString('stringSuperNativeTypeCheck'); |
| } else { |
| return const SourceString('stringSuperTypeCheck'); |